I have map hosted in local windows application i user webbrowser in my windows application and dynamically navigate to javascript that loads google map. This is the place where i want to write javascript to show custom icon thats present at my local disk on google map.
psuedo code: var iconstring = [path of my icon file] var lat = [latitude where i want to show icon ] var lng = [longitude where i want to show icon ] using above three parameters in javascript i want to place this icon on map instead of G_DEFAULT_ICON On May 6, 11:01 am, "[email protected]" <[email protected]> wrote: > On May 5, 10:54 pm, urvishjain <[email protected]> wrote: > > > I know this is very silly... but i was not able to fix it > > > I want to display my icon image at a particular latitude-longitude on > > map. > > > When i make a GMarker object with GLatLng, GIcon and boolean true > > value the map.addOverlay method gives an error ('x' is null or not an > > object). when i remove GIcon and boolean value i can see the default > > pushpin icon at the location > > > i also tried marker.setImage but no success > > > Please help > > How? Where is your map? > > Try:http://econym.org.uk/gmap/ > If that doesn't help, follow the suggested posting > guidelines:http://groups.google.com/group/Google-Maps-API/web/suggested-posting-... > > -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
