i am displaying more than 10,000 markers on my map.when i load with more zoom level Markers are loading quickly on my map.when i load the markers with low zoom level my application is hanging and when i close my map window remaining modules also not Responding(working) .
InMemoryMarkerOverlay markerOverlay = new InMemoryMarkerOverlay("MarkerOverlay");
for (int i = 0; i<dt.rows.count;i++)
<dt.rows.count;i++)>
{
feature = new Feature(pplong, pplat, i);
markerOverlay.Features.Add(feature);
}
markerOverlay.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage = new WebImage(path, 21, 25);
Map1.CustomOverlays.Add(markerOverlay);
how to solve this performance issue.when i close my map can i clear that Map & Markers(More than 10,000) cache memory.so that remaining modules will work fine.how to solve this markers issue with in a quick time.
</dt.rows.count;i++)>
Think Geo Performance issue for loading markers
Hi Raj,
Thanks for your post, we tested it with 4.0 and found a walk around for it, would you please check it ?
if you have any more question , please feel free to let us know.
Best Regards
Summer
Post11359.txt (1.36 KB)
Thanks summer for your reply,
I am using thinkgeo map suite web edition.can u send me applicable for web edition.can we use this same concept in InMemoryMarkerOverlay why means i want to display multiple images for markers.and i want click event for marker.if these two things are possible using InMemoryFeatureLayer this could be more helpful.please suggest me which one i need to use to improve my application performance.i want to display multiple images for markers and click event for marker and i want to display more than 10000 markers on my map(this is my requirement).
Hi Raj,
Thanks for your inputs, and attached is the sample code, would you please try it?
if you have any more question , please feel free to let us know.
Best Regards
Summer
001_Post11359.txt (1.98 KB)
Thank you summer for your reply,
But by using inmemory fetaure layer we can show multiple images for mrkers right?.i think when we use custom overlay or value style can we show multiple images for markers.
Hi Raj,
You are right, use custom overlay and value style should display different icons for different marker.
And I think if you want to use marker, we have some special marker overlay can be selected. For example, you can try InMemoryMarkerOverlay which just used like a InMemoryFeatureLayer.
Regards,
Don
Hello Don,
i am using inmemoryMarkeroverlay with custom marker style.
ClusterMarkerStyle clusterMarkerStyle = new ClusterMarkerStyle(10, Map1.WidthInPixels, Map1.HeightInPixels);
clusterMarkerStyle.MarkerStyle = new PointMarkerStyle(new WebImage(path));
InMemoryMarkerOverlay markerOverlay = new InMemoryMarkerOverlay("MarkerOverlay");
for (int i = 0; i <Dttt.Rows.Count; i++)
{
feature = new Feature(pplong, pplat,);
markerOverlay.Features.Add(feature);
}
markerOverlay.ZoomLevelSet.ZoomLevel01.CustomMarkerStyle = clusterMarkerStyle;
markerOverlay.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
((ThinkGeo.MapSuite.WebEdition.PointMarkerStyle)(clusterMarkerStyle.MarkerStyle)).WebImage.ImageOffsetX = -10.5f;
((ThinkGeo.MapSuite.WebEdition.PointMarkerStyle)(clusterMarkerStyle.MarkerStyle)).WebImage.ImageOffsetY = -25f;
Map1.CustomOverlays.Add(markerOverlay);
when i use this code it is taking some more time to load the markers is there any thing wrong in my code.please check it once with in this can i use value style to improve the performance .right now i want to show 10000 markers on the map.please tell me how to improve the application performance.
Hi Raj,
Using InMemoryFeatureLayer with Valuestyle should be the first choice, because it is much faster than InMemoryMarkerOverlay, following is a sample for value style:
wiki.thinkgeo.com/wiki/File:ServicesEditionSample_ValueStyleWithCountries_CS_100123.zip
Hope it helps
Summer
Thank you summer,
in That example inmemory marker overlay is not using.my application is web application can u show one sample with web application to add markers using value style and inmemory marker overlay
Hi Raj,
Thanks for your query, attached is the sample, would you please try it?
Hope it helps
Summer
002_001_Post11359.txt (1.72 KB)
thank you summer,
But i want inmemorymarkeroverlay with value style.but u send with inmemoryfeaturelayer.can u send code with inmemorymarkeroverlay using value style
Hi Raj,
Thanks for your query, but sorry to say that we don’t support “ValueStyle” in “InmemoryMakerOverlay” for now,You can vote this enhancement to helpdesk.thinkgeo.com/EnhancementTracker. This captures the enhancement request and provides visibility to the customer letting them know that the enhancement is on a list somewhere and that popularity of the enhancement helps set the priority of when the enhancement would be added to the product. This option doesn’t carry any cost for you.
Or if you need this function immediately, your account rep can contact you for a professional services.
Best Regards
Summer
Hi Raj,
Sorry for the mislead in previous post, attached is the sample to achieve the functionality, would you please try it?
Hope it helps
Summer
003_002_001_Post11359.txt (1.62 KB)