Select to view content in your preferred language

North arrow

3495
3
08-11-2011 05:53 AM
Mohd_HairiHamzah
Deactivated User
Hi all,

Is it possible to add north arrow on the map using javascript API? Tried to find it but no luck. Any advice?

Thanks
0 Kudos
3 Replies
deleted-user-K_IRAXrpGKsG
Deactivated User
Can you just add a static image of a north arrow over your map?
0 Kudos
Mohd_HairiHamzah
Deactivated User
Yup. That's the solution. I put span tag in the html so that it wont disturb the map.

dojo.byId("north").innerHTML = "<img id='img' src='images/northarrow.gif' />"; 


[HTML]<span id="north"  style="position:absolute; right:150px; top:5px; color:#000; z-index:50;"></span>[/HTML]

Thanks man.
0 Kudos
Vara_PrasadM_S
Frequent Contributor

Hi,

Could you please let me know, how does this new span HTML element will be identified by ArcGIS Server Javascript API as it would not be in Map object or PrintParameters?

Thanks in advance!

With Regards,

Vara Prasad.

0 Kudos