Hi
I have noticed that in the DBFHandler, that when zooming in, if there is
two(or more) labels on the map, if you continue to zoom in so there is
just one point left, then no labels will be displayed. The current and
last labels will be set as follows (when two on the map) -
Current Label: Rhoose
Last Label :Porthkerry
Then I zoom in again, so I only have Rhoose on the map, both labels are
now set to the same -
Current Label:Rhoose
Last Label :Rhoose
Looking at the code, as the last and current labels are now the same,
then no label will be displayed. This is the snippet from the
DbfHandler -
if (lastLabel == null
|| (lastLabel != null &&
!lastLabel.equalsIgnoreCase(curLabel))) {
OMTextLabeler label = new
OMTextLabeler(curLabel, OMText.JUSTIFY_CENTER);
// Needs to get added to the OMGraphic so it
gets
// generated with the projection at the
right point.
omg.putAttribute(OMGraphicConstants.LABEL,
label);
labelList.add(label);
}
lastLabel = curLabel;
Please could you let me know if this is intended, or is it an error.
Regards
Neil Price
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 06 2008 - 11:43:21 EST