WordPress.org

Ready to get started?Download WordPress

Forums

BP Checkins
[resolved] Default Activity stream map zoom (3 posts)

  1. Intervik
    Member
    Posted 1 year ago #

    Hi and a french hug to a superb plugin. We really get to implement this now and have a script question.

    We gonna (try) add a button to view the map in default zoom value and a perpective zoom value, (country view)

    Where is the default zoom value set ?

    (Before we start to search, you might have a hook or can define the cleanest way to go)

    Thank ya

    http://wordpress.org/extend/plugins/bp-checkins/

  2. imath
    Member
    Plugin Author

    Posted 1 year ago #

    hi and 'merci' for your french hug :)

    I use jquery gmap3 plugin in bp-checkins, their documentation might be useful http://gmap3.net/en/catalog/9-map/defaults-34 or http://gmap3.net/en/catalog/9-map/map-32

    The default value zoom set is defined at various places so i think the best is to use a text editor that allows you to search in multiple files such as sublime text and search for 'zoom: 16'.
    I've just tried this and it gives me :
    /includes/bp-checkins-functions.php line 417
    /includes/bp-checkins-shared.php line 210
    /js/bp-checkins-dir.js line 80 and 137
    /js/bp-checkins.js line 64 and 99

    Adding a hook to customize the map is an interesting idea, i'll keep this in mind for a next upgrade. So far all is in js.

    hope it'll help you to achieve your goal ;)

  3. Intervik
    Member
    Posted 1 year ago #

    THX
    We experiment with the core files and reporting any interesting requests back for the plug.

    Closing topic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.