WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] No placemarks on theme Raindrops (23 posts)

  1. Orazio10
    Member
    Posted 2 years ago #

    I saw a similar question in this forum, but it was with no response.
    I saw your answer:

    Do the placemarks show up when using TwentyTen? yes
    Do the latitude and longitude show up on Edit Placemark page? yes
    What version of the plugin are you using? last version
    Can you tell me the URL of site so I can take a look at it? is in local

    It looks like Bizco includes a Google Map of their own, which could potentially cause a conflict, but I'll know more once I can see your site.
    I use raindrops and it has the same problem.

    wait your response

  2. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the info Orazio. I'll do some testing with that theme and see if I can find the problem. There are a few higher priority bugs, though, so it'll probably be a few weeks before I can get to this.

  3. Orazio10
    Member
    Posted 2 years ago #

    Thanks a lot ian for this plugin. I'll wait for the edit. Good Work!

  4. jesperlofgren
    Member
    Posted 2 years ago #

    I'm having the same problem as Orazio10 is describing above... The Maps works in TwentyTen but as soon as I activate Vanilla from Yootheme it stops...

    Is there anything in the source code of the theme that should be changed in order to get it to work? I come from a Joomla environment and can't really see why plugins stops working between different themes.

  5. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for letting me know jesperlofgren, I'll add that to my list of themes to test. Can you post the URL to your site so I can take a look at it? Also, please describe what happens when "it stops." Do you get any error messages? Does the map show up but not the placemarks, or does the map not show up at all?

  6. jesperlofgren
    Member
    Posted 2 years ago #

    Sorry for being a bit unclear. The map shows up but no placemarks. The strange part is that it worked earlier, until I updated your plugin. I hadthe same problem earlier wit the same theme but all of a sudden it worked just fine. Do youhave any good tricks up your sleeve?

    The site is on localhost at the moment.

  7. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, it's hard to say without being able to look at it. I am going to be reworking a lot of the JavaScript that's been causing people problems in the next release, though, so there's a good chance that might fix it.

    If you're running Firefox with the Firebug extension, look at the console and let me know if there are any errors showing up (even if they're coming from another plugin or the theme).

  8. jesperlofgren
    Member
    Posted 2 years ago #

    Firebug isn't showing any errors at all... I also tried to inactivate all javascripts in the theme but that didn't turn out good, instead it wasn't loading the map at all... I guess the plugin needs the JQuery-script... I give that method another try later.

    But logically the problem must be caused by one or two js-files loaded by the Vanilla theme as with the TwentyEleven theme the map is loading correctly...

  9. nohler
    Member
    Posted 2 years ago #

    I had the same problem with a theme called: Parquetry 1.1
    I ran the firebug error console and

    bgmp_createMarker(): Not all of the required data was passed in.
    in jquery (line 18)

    /wp-admin/admin-ajax.php

    have you seen anything like this?

  10. jesperlofgren
    Member
    Posted 2 years ago #

    I checked my site with Safaris error console and it also says:

    bgmp_createMarker(): Not all of the required data was passed in.
    wp-content/plugins/basic-google-maps-placemarks/functions.js?ver=1.2.1:146

  11. jesperlofgren
    Member
    Posted 2 years ago #

    If you read the source code it says:
    if( latitude == '' || longitude == '' || icon == null )
    {
    if( window.console )
    console.log('bgmp_createMarker(): Not all of the required data was passed in.');
    return false;
    }

    I find no mentions in the database about the icon. I also saw now that I can't assign a icon to a placemark... That link has disappeared from the editing page...

  12. jesperlofgren
    Member
    Posted 2 years ago #

    Sorry for flooding.

    When switching to TwentyEleven I can set a featured image to my Placemarks... If I switch to Vanilla I no longer have that option. That's probably what's causing the problem in the first place... Need to digg deeper.

  13. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Hey nohler, I have seen that before and I'm looking into what's causing it.

    Jesper, thanks for digging into it. I think the fact that the theme doesn't support featured images is probably part of the problem. I'll work on fixing that in the next release or two.

  14. nohler
    Member
    Posted 2 years ago #

    The theme I'm working with: Parquetry 1.1 - DOES support featured images.

    I've been digging also and it has a slew of sub style sheets which have an, as yet, unidentified purpose.

    I think i may just customize Twentyeleven, since it works with your code just fine.

    Perhaps there is some deprecated coding or styling in Parquetry 1.1

  15. jesperlofgren
    Member
    Posted 2 years ago #

    Hi,

    Adding this to the themes functions.php solved my problem:
    add_theme_support( 'post-thumbnails' );

    /Jesper

  16. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Jesper - That's weird because the plugin is already doing that on the admin side, but maybe it has to run on the front end too, or maybe it doesn't work right when a plugin tries to do it instead of the theme. I'll look into it more.

  17. nohler
    Member
    Posted 2 years ago #

    Jesper,

    adding
    add_theme_support( 'post-thumbnails' );

    Actually fixed it. Wow. Nice job!

  18. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    It looks like the function that calls add_theme_support() was hooking in too early in the page load, so I'll set it to run later in the next release.

  19. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Hey guys, I just released 1.3 and it has some changes that I think will fix this. Can you try upgrading and let me know if it works or not?

  20. jesperlofgren
    Member
    Posted 2 years ago #

    Hi Ian,

    It's working! Great job!

    I'm working on getting the zIndex part to work... I guess I'm soon there... Just have to figure out why the js complains on the zIndex value saying it's not a number... I keep you updated.

    /Jesper

  21. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Sounds good :)

  22. jesperlofgren
    Member
    Posted 2 years ago #

    If you're interested in the code I can always send it to you... Seems like something broke when I updated to 1.3.1 but I guess I just need to sit down and read it through.

  23. Ian Dunn
    Member
    Plugin Author

    Posted 2 years ago #

    Yeah, please do. I'll check it to see if it should be incorporated into future releases.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic