Re: [OpenMap Users] RE: DbfHandler Error

From: Don Dietrick <dietrick_at_bbn.com>
Date: Tue, 18 Mar 2008 11:44:12 -0400

Hi Neil,

Looks like an error. If you want to work out the fix and send it in,
I'll incorporate it into the next release.

Thanks,

Don

On Mar 12, 2008, at 8:52 AM, <neil.price_at_bt.com> <neil.price_at_bt.com>
wrote:

> Hi
>
> Just wondering if this is intended, so I can put a fix in, or if it
> will be fixed in the next release. Any reply would be much
> appreciated.
>
> Many Thanks
>
> Neil Price
>
> _____________________________________________
> From: Price,N,Neil,DGE64 R
> Sent: 06 March 2008 16:38
> To: 'openmap-users_at_bbn.com'
> Subject: DbfHandler Error
>
> 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
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



--
[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 Tue Mar 18 2008 - 11:44:29 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT