How to fix the problem with the Map Marker / Map Location Pin is not displayed

Home Forums Porto – Responsive HTML5 Template FAQ’s How to fix the problem with the Map Marker / Map Location Pin is not displayed

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10019281
    Support
    Keymaster

    If the map marker / pin is not being displayed it’s problem because Google wasn’t able to find the “address” you set.

    The easier way to fix that is to set the map using latitude / longitude:

    Example:

    FROM:

    var mapMarkers = [{
    	address: "New York, NY 10017",
    	html: "<strong>New York Office</strong><br>New York, NY 10017",
    	icon: {
    		image: "img/pin.png",
    		iconsize: [26, 46],
    		iconanchor: [12, 46]
    	},
    	popup: true
    }];

    TO:

    var mapMarkers = [{
    	latitude: 40.75198,
    	longitude: -73.96978,
    	html: "<strong>New York Office</strong><br>New York, NY 10017",
    	icon: {
    		image: "img/pin.png",
    		iconsize: [26, 46],
    		iconanchor: [12, 46]
    	},
    	popup: true
    }];

Viewing 1 post (of 1 total)

This topic is marked as "RESOLVED" and can not rceive new replies.