Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Visit the Wiki  |  Find us on: Twitter Facebook Google+ LinkedIn

Discussion Forums

The online community for users of Map Suite GIS components

Is caching technique available for Custom overlay ?
Last Post 03-29-2012 10:35 AM by Gary. 5 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
VinodUser is Offline
Level 1
Level 1
Posts:3
Avatar

--
03-21-2012 11:37 AM

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

GaryUser is Offline
MVP
MVP
Posts:1914
Avatar

--
03-21-2012 03:25 PM

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

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

chandramohanUser is Offline
Level 1
Level 1
Posts:3
Avatar

--
03-22-2012 12:25 AM
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.
GaryUser is Offline
MVP
MVP
Posts:1914
Avatar

--
03-23-2012 02:32 PM
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

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

chandramohanUser is Offline
Level 1
Level 1
Posts:3
Avatar

--
03-24-2012 11:00 AM
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.
GaryUser is Offline
MVP
MVP
Posts:1914
Avatar

--
03-29-2012 10:35 AM
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

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

You are not authorized to post a reply.

Active Forums 4.2