• Resolved Tijmen Smit

    (@tijmensmit)


    Hi,

    I don’t know if this is done on purpose, but the plugin seems to unload Google Maps libraries loaded by other plugins on pages where the WP Google Maps plugin isn’t used. Why is this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • I’m seeing the same with all 7.10.x versions. It breaks other google maps on pages where it isn’t even there. It really shouldn’t load or mess with anything but on pages where it’s maps are.

    Reverting to 7.0.06 fixes the issue.

    Developer. We have more than enough stuff loading on pages, that plugins should do their best to only load content on pages where their presence exists or at least load your code in a such a way that all scripting is isolated from others as to not interfere.

    • This reply was modified 7 years, 10 months ago by Endymion00.

    I’m a plugin developer for a plugin that uses Google Maps and it no longer works when this plugin is installed. I am enqueueing the script with wp_enqueue_script(). Is there a solution? I don’t see what I can do on my end.

    same problem here, i use the wp-gpx plugin but maps are not showing up anymore unless I disable the wp google maps plugin

    Hi everyone

    Thank you for getting in touch and thank you very much for bringing this to our attention.

    We’ve had a lot of trouble with “You have loaded the Google Maps API Multiple times” breaking peoples maps in the past, and have had code to attempt to block other sources from enqueueing the API.

    This code has been improved and I can see that whilst it’s working as intended, this is creating problems for you.

    For a short term solution you can use the controls in Maps -> Settings -> General Settings regarding the Google API. You can control where the API is enqueued (Never, Always, Front End only, Back End only, Where Required), you can also include and exclude certain pages.

    What I’d like to propose is also adding a checkbox for “Do not prevent other plugins or theme from loading Google API”, would that solve the problem for you all?

    If that sounds good we’ll have that patched in today.

    Kind regards
    – Perry

    Thread Starter Tijmen Smit

    (@tijmensmit)

    What I’d like to propose is also adding a checkbox for “Do not prevent other plugins or theme from loading Google API”, would that solve the problem for you all?

    That depends if it’s enabled by default. I have the same problem with my plugin, and also have a ‘compatibility mode’ that unloads other Google Maps scripts in case it’s really necessary, but this is disabled by default.

    I don’t think it’s okay to just by default unload JS scripts required by other plugins, especially if they are required for the other plugin to properly function.

    I agree with Tijmen on that. It works for me only if it’s enabled by default.

    Thank you for this, we really appreciate your feedback!

    We’ve added “Prevent other plugins or theme from loading Maps API”, this checkbox is unchecked by default.

    If I’ve understood correctly, this is the behaviour you’re describing?

    Thank you, I can confirm it’s working again.

    Thank you for letting us know.

    I’m confident this is solved, however if anyone else has further issues please let us know?

    I’m not finding the “Prevent other plugins or theme from loading Maps API” checkbox. Where is that supposed to be in the settings?

    Also, the changelog isn’t being updated for the last few versions.

    I’m really sorry to hear you’re still experiencing this issue,

    Can you please confirm which version of the plugin and any add-ons you are running?

    Can you please open a ticket at https://www.wpgmaps.com/contact-us and attach login details to your site if permissible, so we can look into this further?

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Plugin unloads other Google Maps scripts’ is closed to new replies.