Select to view content in your preferred language

Showing the XY coordinate at the bottom on the Silverlight interface,

3647
3
05-07-2013 12:56 PM
JamalNUMAN
Legendary Contributor
Showing the XY coordinate at the bottom on the Silverlight interface,

I couldn???t figure out how the XY coordinates can be shown at the bottom of the interface of the Silverlight rather than having them on the cursor

[ATTACH=CONFIG]24107[/ATTACH]

Is that possible

Thank you for the help

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
3 Replies
JamalNUMAN
Legendary Contributor
You should build an addIn, build the control containing the coordinates of the mouse, put it in a floating window (i attach you a transparent version one), and then configure the window position.

I think it was explain a while ago in this forum, I take my solution from here I think. Mmm I really don't remember, It was a year ago I build it. Anyway hope it helps.

Here is a picture of how it looks.
[ATTACH=CONFIG]24781[/ATTACH]

Regards, Manuel


Many thanks Manuel for the help,

Unfortunately, I�??m not a developer to do it in my own. However, is there a way just to stick the code you have provided in my *.htm and thus having the coordinates appeared on the map?

[ATTACH=CONFIG]24791[/ATTACH]
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
JamalNUMAN
Legendary Contributor
The code is just for the window, you need to implement the addIn.

I modified a bit mine and attach it, try it and see if that's what you need. I label in the screen X,Y because I do not know you map reference, I can not attach the hole code project because is like 8 mb, I put the addIn code and the Tool.xml. If you want build a project with the same name (CoordJamal), and replace the folder and then replace thr Tool.xml file in ..\Visual Studio 2010\Projects\CoordJamal\CoordJamal\CoordJamal\Config. Then you can change it as you want.

You can change the position of the X,Y window in the configuration when you add it in the viewer or in the Tool.xml, I use
<WindowPosition>
  <HorizontalAlignment>Center</HorizontalAlignment>
  <VerticalAlignment>Bottom</VerticalAlignment>
  <HorizontalOffset>0</HorizontalOffset>
  <VerticalOffset>0</VerticalOffset>
</WindowPosition>

Hope it help, let me know if it work or need something else.

Regards, Manuel



Many thanks man for the massive efforts. It worked fine.
[ATTACH=CONFIG]24856[/ATTACH]


I have posted many threads asking for the map scale to be plugged on the Silverlight. I�??m not sure if you have already developed such tool

[ATTACH=CONFIG]24857[/ATTACH]

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
JamalNUMAN
Legendary Contributor
Glad that it helps you.

I have not implemented a scale tool, they did not ask for it in my work. Sorry I can not help you there, If I start it I will let you know.

Regards, Manuel


Thanks Man,

Yes please, let me know in case you develop it

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos