ThinkGeo.com    |     Documentation    |     Premium Support

InMemoryMarkerOverlay - Popup Issues

In working with InMemoryMarkerOverlays, I've discovered the following bugs:


1) ApplyUntilZoomLevel does not work for the popups, each level must be set individually


2) If you create a CustomPopup instance and set it to the Popup of a zoom level, they will ALWAYS display. It essentially breaks the hover behaviour. This means the Popup attributes have to be manually set everytime for every zoom level.


3) Delay does nothing (known bug)


If anyone has workarounds let me know. If not, just be aware of the bugs.


And if I'm wrong about the bugs, that's fine too, just let me know what I'm doing wrong.



Kirk, 



Here are my ideas about the problems you mentioned. 



1, ApplyUntilZoomLevel represents when a marker, as well as its popup and contextMenu, is valuable, if you just want to control the popup, you can simply add another MarkerOverlay to accomplish it. For example, I want to show the markers only from ZoomLevel1 to ZoomLevel10; and show markers and enable their popups from ZoomLevel11 to ZoomLevel20, I can create 2 MarkerOverlays, one is for Zoomlevel1-10 and the other with popups is for ZoomLevel11 to 20, add them to Map1.CustomOverlays and everything will be fine. 



2, If you create a CustomPopup, you need to set the “IsVisible” property to false otherwise it always shows up like you said. If you pass in the popup in PointMarkerStyle's constructor, we will set its IsVisible to false internally.  



3, there is a bug about the PopupDelay that once your mouse move over a marker, the timer starts and the popup will always display in 1 second (let's say I set the PopupDelay to 1 second) even the mouse is not over that marker then. Here is a relative post about this bug and we will fix it in the coming version.


gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/5371/afv/topic/Default.aspx 





4, Also here is another issue with InMemoryMarkerOverlay in the current version, that some markers will be invisible after certain cases. Please have a look at this post where we also provide a way to work around. 

gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/5283/afv/topic/Default.aspx 



Let me know if you have any issues. 



Thanks, 



Ben