Getting Mappoint

1867
5
11-22-2012 11:58 AM
Labels (1)
JeffreyHanson3
New Contributor
Is there a way to get a mappoint other than the map:mouseclick event?
0 Kudos
5 Replies
AnttiKajanus1
Occasional Contributor III
What kind of scenario you have? It is quite hard to answer without knowing what you are actually doing or how you would like to do it.
0 Kudos
JeffreyHanson3
New Contributor
I want to be prompted to click on the map and get a map point - as in an Identify task - without it being automatic in the Map:MouseClick event.   Also, is there away to raise this event without it being set in xaml?
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

The MapPoint geometry can be constructed from any coordinates you have. You can also convert between screen coordinates and geographic coordinates so the interaction does not necessarily need to come from the map itself. You may also want to consider using the Draw object in conjunction with the map? - see the samples for example usage.

Cheers

Mike
0 Kudos
JeffreyHanson3
New Contributor
Is there a method like get_mappoint or something similar besides Map:Mouseclick?
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

That depends on what you would like the MapPoint to represent - if it's the geometry of the position the user clicked on the map then Map_MouseClick is a good option, or alternatively you could consider the Draw class: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Cli....


Cheers

Mike
0 Kudos