Support » Plugin: Maps Plugin using Google Maps for WordPress - WP Google Map » Map does not appear on page, but title and directions show up

  • Resolved arcooke


    I’m having trouble getting this plugin to work. I have a valid API key that I’ve used on other map plugins

    When I place the shortcode on my page, I can get the map title and directions to appear, but the map itself never shows up. Tested in Chrome and Edge. There are no javascript errors in the developer tools.

    This is all I see:

    I can also get directions to show, but no map:

    The shortcode is working, this is the source code created (I <removed> private location info):

    	<h1 class=''>Office Location</h1>        
    	<script type="text/javascript">
    		google.maps.event.addDomListener(window, 'load', function () {
    			var map = new google.maps.Map(document.getElementById("srm_gmp_embed_1"), {
    				center: new google.maps.LatLng(<removed>,<removed>),
    				mapTypeId: google.maps.MapTypeId.ROADMAP,
    				scrollwheel: '1'
    			// To view directions form and data
    							//=========Direction view end
    			var marker = new google.maps.Marker({
    				position: new google.maps.LatLng(<removed>,<removed>),
    				map: map,
    				animation: google.maps.Animation.DROP
    							var infowindow = new google.maps.InfoWindow({
    				content: "<address removed>"
    			});, marker);
    			google.maps.event.addListener(marker, 'click', function () {, marker);
    	<div id="srm_gmp_embed_1"
    		 style="width:100% !important;height:400  !important;margin:5px 0; ">

    I’m hosting on localhost right now so I can’t provide a link for testing.

    I am using the plugin with the Lite version of this theme:

    Any ideas?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Saidur Rahman Milon


    Thanks for your comment.

    I see the rendered HTML form your shortcode is seemed OK.

    Maybe, something went wrong in your local PC. If you have no problem, I wish to connect with you remotely to see why the map is not appearing.

    My skype: milon305021


    Plugin Author Saidur Rahman Milon


    Sometimes API KEY takes time to make effect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Map does not appear on page, but title and directions show up’ is closed to new replies.