Hi,
I can see my default location actually in center of map using chrome browser and this is my code :
But with Firefox and IE the map is not centered ! (the center shifted to the left)Code:var DefaultLatitude = 38.08013; var DefaultLongitude = 46.28503; var defaultZoomLevel = 16; ..... var mapOptions = { baseMapType: nokia.maps.map.Display.NORMAL, center: new nokia.maps.geo.Coordinate(DefaultLatitude, DefaultLongitude), zoomLevel: defaultZoomLevel, components: [ new nokia.maps.map.component.ZoomBar(), new nokia.maps.map.component.Behavior(), new nokia.maps.map.component.Overview(), new nokia.maps.map.component.ScaleBar(), new nokia.maps.map.component.ContextMenu(), infoBubbles = new nokia.maps.map.component.InfoBubbles() ] ....... var mapContainer = document.getElementById('map_canvas'); map = new nokia.maps.map.Display(mapContainer, mapOptions); ...... <style> .MapHolder { background: none repeat scroll 0 0 #F5F5F5; border: 1px solid #DADADA; padding: 0px 0px 0px 0px; } </style> <div id="_DivMapHolder" class="MapHolder"> <div id="map_canvas" style="height: 100%;"> </div> </div> }
The other controls such as ZoomBar, ScaleBar, ... are in true place in both Chrome and Firefox .
How can i fix this problem ?
Tanx

Reply With Quote

