Re: [OpenMap Users] Layer dosen't "update" after call to MapBean.setCenter(lat, lon)

From: Carsten . Madsen <com_at_navicon.dk>
Date: Thu, 31 Jan 2008 11:16:11 +0100

Hi

Does the layer receive a projection change event after the call to
setCenter?

Override prepare and check that generate is called on the list returned
by getList() and that the list is not empty when this is done.

BR
Carsten

Davidian wrote:
> Ok, I want to specify that this doesn't always happen, but sometimes it does.
> It appears that this behavior occurs mostly when I first open the
> application and there are not many items in the layer's OMGraphicList.
>
> Anyway, my setup:
>
> 1) I have an OMGraphicHandlerLayer which I do NOT set the
> ProjectionChangePolicy for (defaults to StandardPCPolicy).
>
> 2) When I pan the map around with PanMouseMode or ZoomMouseMode, everything
> updates correctly and display properly.
>
> 3) However, when I change the display by calling MapBean.setCenter(lat, lon,
> zoom) there are times when the OMGraphics are not displayed until I manually
> change the projection by zooming in or out. I can regularly reprocude this
> behavior.
>
> Anyone have any ideas? If you need more info, let me know. I have tried
> various things, but nothing seems to fix this. I love OpenMap, but this is
> getting frustrating.
>
> Thanks,
>
> Kennedy
>

--
[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 Jan 31 2008 - 05:19:25 EST

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