• Resolved Felix Arntz

    (@flixos90)


    Hello,

    I have a problem where the map is not loading when I use a hyperlink in the bubble. I do it exactly the way that is specified in your documentation, using #http://example.com anchortext#, but it does not work. When removing the link and only including plain text (without #), the map will load perfectly fine.

    The test site below shows an example: Both in the content of the post and in the widget on the right you see the map not loading. The widget is a custom widget, and for testing purposes I used print_r to print the content I pass as the ‘addmarkerlist’ attribute (hope this helps).
    Test Site See the printed out code above the stupid monkey face image…

    Hope you can help, thanks a lot in advance!

    http://ww.wp.xz.cn/plugins/comprehensive-google-map-plugin/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexanderzagniotov

    (@alexanderzagniotov)

    Hi… I had a look at your site and I have a question:
    The plugin generates OBJECT HTML element that contain JSON for the map rendering. Have a look at the partial screenshot of that: http://pbrd.co/J7mYBn

    You see how “Fantasy business” is on the new line and the closing anchor tag is also on the new line? I wonder why you got new line breaks there… Regardless, I will apply a fix that hopefully will fix it… Wait to v8.0.4

    Plugin Contributor alexanderzagniotov

    (@alexanderzagniotov)

    Sorry, the fix is not in 8.0.4. I checked the code, and I am making sure that I am trimming white spaces… Its weird… I will have to think about it

    Thread Starter Felix Arntz

    (@flixos90)

    Hi Alexander,

    alright, I know what has caused the problem. It is nothing that has to do with your plugin. I use an output buffer in the theme there that has the goal to print out all the HTML code in a way that is easily readable by the user (with correct tab indents and such), something like a minifier, but this time rather a prettifier. When I did this, I didn’t think of HTML code that could possibly be inside another HTML attribute.

    Anyway, I’m not quite sure if this is useful in general, so I’m probably gonna remove it.

    But thanks for the help, because of you I found what was causing the problem! You don’t need to fix anything there.

    Plugin Contributor alexanderzagniotov

    (@alexanderzagniotov)

    Awesome, thanks for letting me know and I am glad I was able to help!

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

The topic ‘Map not loading when hyperlink in bubble’ is closed to new replies.