I'm trying to add a marker to a map, I've followed several examples on here but every time I try to add it I get this error
Uncaught Error: Invalid value for property <map>: [object HTMLDivElement]
Which occurs in this line
var barMarker = new google.maps.Marker({
position:location2,
map:map,
title:"Murphy's Bar"
});
now i've tried defining the map variable in sevral ways but each time it's the same
//var map = Appery('multiGoogleMap').get(0);
//var map = $('div[name="multiGoogleMap"]')[0];
//var map = $('div[name="multiGoogleMap"]');
//var map = $('div[dsid="multiGoogleMap"]').get(0);
//var map = $('div[dsid="multiGoogleMap"]');
but each one gives the same error, does anyone have an idea? (and yes, the map name is multiGoogleMap, I checked that first
).