Support » Plugin: Basic Google Maps Placemarks » Hide Street View Option?

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    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?

    Plugin Author Ian Dunn

    (@iandunn)

    @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.

    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…

    Plugin Author Ian Dunn

    (@iandunn)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide Street View Option?’ is closed to new replies.