ThinkGeo.com    |     Documentation    |     Premium Support

Combining the EditOverlay with the StaticOverlay

I use a WMS static overlay to allow the map to roam on an ad hoc fashion. I also use the static overlay and customized feature source and layer, so that when the map extent is changed to an area where there are shapes in the database, those shapes will display (by virtue of the GetFeaturesInsideBoundingBoxCore override).


However, now I need to allow the person using the map to edit the shapes and create new shapes. Needless to say, this happens in the EditOverlay.


My question is, what is the best way for me to take advantage of the customized feature source and layer functionality (with the GetFeaturesInsideBoundingBoxCore override) so I can easily grab shapes from the database, and display those shapes in the EditOverlay?

 



 


 




Gregory, 
  
 Your customized FeatureSource / FeatureLayer is transparent for the other parts, just write the codes with “the normal way” and the system itself will automatically take the advantage of your customized changes. For example, EditOverlay accepts Features, it has no idea where that feature comes from or how we get it, so just write the codes the same way as dealing with a normal feature Source, it will be fine. If you want to edit the features in the current viewport, just get them out and add them to EditOverlay, that will work. 
  
 Let me know if you have any issues about that. 
  
 Thanks, 
  
 Ben