I am trying to place a marker on Google Maps using its PlaceID. I have a map that works and is displayed, and I can also add markers to it (using latitude and longitude).
The code below is what I use to try to make the marker show using its placeID, but it does not display.
function addPlaces(){ var marker = new google.maps.Marker({ place: new google.maps.Place('ChIJN1t_tDeuEmsRUsoyG83frY4'), map: map }); }
This function is called after loading the map.
google.maps.event.addDomListener(window, "load", addPlaces);
javascript google-maps google-maps-api-3 google-maps-markers
Rafty
source share