WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] Hide Street View Option? (6 posts)

  1. Denis Lam
    Member
    Posted 1 year ago #

    Is there a setting or option to hide the "street view man" on the map? I do not see it any where in the Settings.

    Thank you!

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

  2. jesse.t
    Member
    Posted 1 year ago #

    Without digging too much into it, in the function.js file it looks like the option disable it should be there. (version 1.9.2.)

    'streetViewControl' : bgmpData.options.streetViewControl

    I'm not sure what else that control handles, but if you wanted to disable streetview you could set that to false for now.

  3. Denis Lam
    Member
    Posted 1 year ago #

    Thank you Jesse!

    Upgraded to 1.9.2 and before modifying anything in JS file, the map won't show anymore... I had to revert back to 1.8.

    Only thing I can think of that may be causing this is I have custom default placemark image specified in functions.php. Any ideas?

  4. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    @spiffyd, I've added a filter for that to trunk. So, now you can just do this in your functions.php or a functionality plugin:

    add_filter( 'bgmp_street-view-control', '__return_false' );

    If the map doesn't load, please post the URL to it and I'll take a look.

  5. Denis Lam
    Member
    Posted 1 year ago #

    Overwrote 1.8 with the trunk and added the add_filter code to functions... but bad news, the map won't load. I can't post the URL for now due to some terms in the contract with my client I'm developing a site for, but I'll try to replicate it and post a sample later...

    Btw, I found the filter you added in the core.php or the trunk @ line 1183. I found the similar line and added that filter to 1.8's core.php line 987 I believe and that didn't work either...

  6. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    Usually when it won't load that means there's a JavaScript error that's breaking everything. Can you check the JavaScript console? There's more troubleshooting tips in the FAQ.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.