WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] [Basic Google Maps Placemark] - Firefox not rendering all placemarks (3 posts)

  1. frizzle
    Member
    Posted 2 years ago #

    I was having trouble where a huge number of my placemarks were not rendering in Firefox, but were doing so in every other browser. I traced it down to this: if for some reason the plugin does not have a lat/long setting for a placemark, it will send empty strings to the Google Maps API. In other browsers, the Javascript seems to be able to deal with that and just ignores that placemark. In Firefox, you get these unsightly errors:

    Error: uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://maps.gstatic.com/intl/en_us/mapfiles/api-3/5/14a/main.js Line: 91"]

    Error: uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://maps.gstatic.com/intl/en_us/mapfiles/api-3/5/14a/main.js Line: 92"]

    So if you get the above errors -- you probably accidentally didn't put a location in. I had to figure out which one was causing the error by looking at the rendered source (which showed me what order they were being sent to Google Maps as a big JSON query at the bottom), and then when I was tinkering with the offending entry, I realized that it was offending because it didn't have a location plotted.

    Just passing this on in case anyone else was having this issue.

  2. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for digging into that frizzle, I'll fix it in the next release.

  3. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    This is fixed in 1.4 now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic