WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
bgmpData is not defined (7 posts)

  1. Tim Blankenship
    Member
    Posted 1 year ago #

    I'm getting this error, sometimes.

    Uncaught ReferenceError: bgmpData is not defined functions.js:37

    I've I do a hard refresh of the page the map will load. On a soft refresh the map does not load (also on mobile chrome). It will load once and then not work with the error stated above showing in the JS console. If I clear my WP Super Cache date the page will load on mobile chrome, but only once.

    My map is here: http://waterfire.org/visit/explore-providence-map/

    I'm using version 1.10 of the plugin.

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

  3. Tim Blankenship
    Member
    Posted 1 year ago #

    I upgraded to trunk and the JS error is gone the map is still behaving the same. Shows up if I do a hard refresh otherwise just blank.

  4. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    I don't see any evidence that the [bgmp-map] shortcode is on the page. Can you tell me a little bit about how it's setup? Did you just type the shortcode into the page's editor box, or are you using a page template with do_shortcode(), etc.

  5. Tim Blankenship
    Member
    Posted 1 year ago #

    Ian, I'm using the shortcode inserted into the editor. This is the code that is on that page:

    <h3>Points of Interest: <a title="Plan Your Trip to Providence – Downtown Providence Map" href="http://waterfire.org/visit/explore-providence-map/">Show All</a></h3>
    <div class="map-menu">
    <div class="map-menu-item"><a title="WaterFire Places" href="http://waterfire.org/visit/waterfire-place/"><img class="alignnone size-full wp-image-4913" alt="Fire" src="http://waterfire.org/wp-content/uploads/2013/04/fire-2.png" width="32" height="37" /> WaterFire Places</a></div>
    <div class="map-menu-item"><img class="alignnone size-full wp-image-4919" alt="Restaurant" src="http://waterfire.org/wp-content/uploads/2013/04/restaurant.png" width="32" height="37" /> Restaurants</div>
    <div class="map-menu-item"><a title="Map of Providence Area Hotels" href="http://waterfire.org/visit/map-of-providence-area-hotels/"><img class="alignnone size-full wp-image-4918" alt="Hotel" src="http://waterfire.org/wp-content/uploads/2013/04/luggage.png" width="32" height="37" /> Hotels</a></div>
    <div class="map-menu-item"><a title="Map of WaterFire Event Parking and Public Transportation Options" href="http://waterfire.org/visit/parking-map/"><img class="alignnone size-full wp-image-4910" alt="Parking" src="http://waterfire.org/wp-content/uploads/2013/04/car.png" width="32" height="37" /> Transportation</a></div>
    <div class="map-menu-item"><a title="Map of WaterFire Event Restrooms" href="http://waterfire.org/visit/restooms-map/"><img class="alignnone size-full wp-image-4984" alt="Restrooms" src="http://waterfire.org/wp-content/uploads/2013/04/toilets1.png" width="32" height="37" /> Restrooms</a></div>
    <div class="map-menu-item"><a title="Map of Other Providence Area Attractions" href="http://waterfire.org/visit/map-of-other-providence-area-attractions/"><img class="alignnone size-full wp-image-5375" alt="Other Attractions" src="http://waterfire.org/wp-content/uploads/2013/05/landmark.png" width="32" height="37" />Other Attractions</a></div>
    </div>
    [bgmp-map categories="restaurants" zoom="15"]
    
    &nbsp;
    
    [sc:clear-float]

    It is strange because it's like the shortcode (or the code it is supposed to generate) just disappears.

  6. Tim Blankenship
    Member
    Posted 1 year ago #

    I rolled back to version 1.8, maps are working again. It would be awesome to figure out what's going wrong with 1.10 (1.9 was displaying the same behavior) so I can get the view on map links back in the bgmp-list.

    All things considered this is still a great plugin.

    Warmest Regards, Tim

  7. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, I'll try to take another look when I get some time and see if I can figure it out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic