VDS Technologies

 

Add Graphic Which must be cleared accross page call backs or postback

1/31/2014 1:34:26 AM
Total Posts 4

Add Graphic Which must not get cleared accross page call backs or postback

Hi

 

I want to add a Graphic point based on Lat, long values which must not get cleared in page call backs. I want to call the method of creating graphic point in if(!ISPOSTBack)  event only once & it must appear when i zoom or pan the map.

 

please help me in this regard asap.

1/31/2014 3:09:59 AM
MVP
Total Posts 323

Re: Add Graphic Which must be cleared accross page call backs or postback

See the AddMarker.aspx.cs or CreatePoint.aspx.cs in the standard AspMap samples.

1/31/2014 11:14:36 PM
Total Posts 4

Re: Add Graphic Which must be cleared accross page call backs or postback

Thankyou.

Can we clear single marker on map instead of clearing all markers.

1/31/2014 11:31:38 PM
Total Posts 4

Re: Add Graphic Which must be cleared accross page call backs or postback

am adding 10 marker images to map in every 10 seconds using timer control but when markers add to map, map is slightly moving or looks like Map is rendering again.

I want map to remain static without moving when markers are getting added.

2/1/2014 2:15:50 AM
MVP
Total Posts 323

Re: Add Graphic Which must be cleared accross page call backs or postback

To remove markers, use Markers.Remove. When you call an event(timer) on the server side, the map and markers are refreshed.

To add markers without refreshing the map, use the Map.AnimationLayer property. See the 'Tracking Vehicles' topic in the documentation and in the samples.

2/1/2014 2:19:13 AM
MVP
Total Posts 323

Re: Add Graphic Which must be cleared accross page call backs or postback

See also the 'Layers/Display the AnimationLayer' sample in the AspMap samples.