Is caching technique available for Custom overlay ?
I have to overlay thousands of Markers on a Map and be able to pan/zoom etc.
Thanks
Is caching technique available for Custom overlay ?
I have to overlay thousands of Markers on a Map and be able to pan/zoom etc.
Thanks
Hello Vinod,
Thanks for your post, I want to define the "Custom Overlay" first.
You mean Map1.CustomOverlay[] or you create your own overlay inherit from Overlay?
If the first situation, it's up to which overlay you add into it, like LayerOverlay, you can use ServerCache or ClientCache properties. But some overlay don't support cache.
If the second situation, you need add the ServerCache and ClientCache properties into your own overlay, it still can work.
Please feel free to let us know your queries.
Regards,
Gary
Hi Gary,
Is caching technique avialble for WorldMapKitWmsWebOverlay.
If not please provide me some alternative.We want to speed up the thing like zooming.
Thanks & Regards,
chandramohan.
Hello chandramohan,
If you use our WorldMapKitWmsWebOverlay, there is no way to set the server cache, but your browser will create the cache in the client side automatically.
But I don’t think this is the point, first our WorldMapServer has the strech effect, that make it have very good performance, most time faster than google map. Second you said “I have to overlay thousands of Markers on a Map and be able to pan/zoom etc.” so I think maybe your original goal is set the cache to your overlay which include the marker, and that part effect the zoom performance?
Regards,
Gary
Dear Gary,
Your wright.We suppose to set the cache for marker overlay.We are using InMemoryMarkerOverlay to place markers on the map.
Is it possible to set the cache for InMemoryMarkerOverlay?.
If possible please provide some sample or else provide me some alternative way.
Thanks&Regards,
chandramohan.
Hello chandramohan,
For InMemoryMarkerOverlay, you can’t set it’s cache because it’s working in the memory.
But for your situation, I believe you can set the MarkerStyl = new ClusterMarkerStyle() to improve the performance.
For this style, there are two effects,
1. It will hidden the unnecessary marker in an area that will make the map looks much better, for example, in the map you have 1000 thousand marker, it’s hard to see each one clearyly, then you use this style and set the distance property to a value, so in that value, it will only show one marker. of course if you always want to show every marker, set the distance to 0.
2. It will simplify the html request, with out this style, it will transfer to client side with html including popup, information etc, a big size of data for each marker, but after use this style, it only transfer a location with image information, only when you click or hover the marker, it will request more information. That will greatly increase the performance.
I hope this can help.
Regards,
Gary