Hi,
I am using google map javascript API to display map and in my map i am displaying marker.
I am able to get marker image on simulator perfectly while on actual device nokia 5233 i am not geting marker image.
google map default image as well as custom image1 is not rendering but custom image2 is rendering perfect.
I am confuse same code is working for second image but it is not working for first image and google default image also.
below is my code. Please help me.
Thanks.Code:HTML code : <div id="map_canvas"></div> JavaScript : // initialize map var LocationmyOptions = { zoom: 6, center: Locationlatlng1, mapTypeId: google.maps.MapTypeId.ROADMAP }; var LocationmapMain = new google.maps.Map(document.getElementById("map_canvas"), LocationmyOptions); // set marker image in var var iconImg='Icon.png'; // marker code var Locationlatlng2 = new google.maps.LatLng(lat,long); var LocationmarkerOption2 = {map: LocationmapMain,position: Locationlatlng2,icon:iconImg}; var Locationmarker2 = new google.maps.Marker(LocationmarkerOption2);

Reply With Quote

