WordPress.org

Ready to get started?Download WordPress

Forums

Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
[resolved] [Plugin: Leaflet Maps Marker] Move the control box to the right (6 posts)

  1. Rwuanna
    Member
    Posted 2 years ago #

    How do I move the control box (zoom controls box) to the top-right corner of the window (instead of the default top-left)?

    Here is a link to my test blog

    http://dvdnunta.ro/wordpress/

    http://wordpress.org/extend/plugins/leaflet-maps-marker/

  2. Rwuanna
    Member
    Posted 2 years ago #

    to the top-right corner of the window

    or
    to the top-right of the map (no matter if full screen or not?

    Thanks.

  3. Rwuanna
    Member
    Posted 2 years ago #

    I resolved it, made some changes in leaflet.js.
    I changed the class L.Control.Position

  4. varnau
    Member
    Posted 1 year ago #

    Hello, I'm trying to do the same thing but I don't see "L.Control.Position" anywhere in the leaflet.js file. Am I missing something?

  5. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    The position would have to be set with the method setPosition(...) - see http://leafletjs.com/reference.html#control. But this would mean you would have to change several plugin files directly (/inc/showmap.php, /leaflet-fullscreen.php) and these changes would be overwritten on plugin updates.
    Currently there is no option to set the position from the admin backend of the plugin

  6. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    PS: as I give support for free, I´d appreciate your review at http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic