My map is showing perfectly, the only thing I am missing is the marker and title. Can someone view my code and see why my markers are not showing up?
My code;
<script type="text/javascript">
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(55.6078568,13.0126611),
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("google_map_392"),
mapOptions);
var point = new google.maps.LatLng(55.6078568,13.0126611)
var marker = new google.maps.marker({
position:point,
map:map,
});
}
</script>
Thank you!
The marker is an object constructor so you need to use the proper (capitalized) name:
That will create the marker on your map, but if you want it to have a title then you will need to add the “title” property as well: