Marker on click

7/14/2014 2:22:01 AM
Total Posts 28

Marker on click

How to add marker at a place where user click.

7/14/2014 2:31:22 AM
MVP
Total Posts 323

Re: Marker on click

See the AddClickEvent.aspx.cs sample

7/14/2014 5:27:41 AM
Total Posts 28

Re: Marker on click

 

But this  below function doesn't invoke..,I have tried this by inserting breakpoint..,can u suggest me loophole 

 

protected void Map1_InfoTool(object sender, InfoToolEventArgs ee)

{

7/14/2014 6:04:17 AM
MVP
Total Posts 323

Re: Marker on click

Make sure that the Map.InfoTool event is added in the Properties window or directly in the aspx file, and Map.MapTool is set to Info.

7/14/2014 6:11:42 AM
Total Posts 28

Re: Marker on click

both option are set...,still its nt even invoke

7/14/2014 6:18:10 AM
MVP
Total Posts 323

Re: Marker on click

Post all of your code (aspx and .cs)

7/14/2014 7:52:40 AM
Total Posts 28

Re: Marker on click

its done..,thanx bro

actually the problem is that the method that load layers..,has ( l_map.MapTool = MapTool.Pan;) set..,that why its doesn't go to click event..,

i just have to change it to l_map.MapTool = MapTool.Info;

nd it works ..:)