Select to view content in your preferred language

North arrow

3407
3
08-11-2011 05:53 AM
Mohd_HairiHamzah
New Contributor
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
New Contributor III
Can you just add a static image of a north arrow over your map?
0 Kudos
Mohd_HairiHamzah
New Contributor
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
Occasional Contributor II

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