Select to view content in your preferred language

showPanArrows() not working??

762
2
07-02-2012 02:42 AM
shyamverma
Emerging Contributor
I want to pan map with directional arrows . I have tried setting isPanArrows to true by passing as attribute while creating map and calling showPanArrows() on map load event. In both case arrows dont show and map.isPanArrows shows as false. Can anyone guide as to what might be wrong??
0 Kudos
2 Replies
shyamverma
Emerging Contributor
dojo.connect(map,'onLoad',function(){
alert(map.isPanArrows);
map.showPanArrows();
alert(map.isPanArrows);

});

Here is how i call the function. Both the alerts show false.
0 Kudos
shyamverma
Emerging Contributor
I got it to work  by adding nav:true to attribute while creating map. Maybe it should be added to api if this is a preresiqute for showing pan arrows
0 Kudos