« Return to Thread: Layer dosen't "update" after call to MapBean.setCenter(lat, lon)

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

by Davidian :: Rate this Message:

| View in Thread

Carsten,

Yes, I've confirmed that the layer is getting a ProjectionChanged event every time I call setCenter.  As a matter of fact, it looks like it is getting two such events.  I'm sure that is because I am calling setCenter() on the MapBean, and then following that with setScale().  

Also, I am extending OMGraphicHandlerLayer.  I checked the code in that class, and generate() is getting called for sure in the prepare() method.  

Thanks for your help so far.

-Kennedy


oland wrote:
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

 « Return to Thread: Layer dosen't "update" after call to MapBean.setCenter(lat, lon)