Change L.Control.Zoom position to 'bottomleft'

5,062 views
Skip to first unread message

Matt

unread,
Jun 4, 2013, 1:11:11 AM6/4/13
to leafl...@googlegroups.com
I just cant get this to work outside of editing leaflet-src.js.  How Can I change the location of L.Control.Zoom to 'bottomleft'?  I'm using angularjs and angular-leaflet-directive.  

Cheers!

Stefano Cudini

unread,
Jun 4, 2013, 8:44:46 AM6/4/13
to leafl...@googlegroups.com

map = new L.Map('map', {zoomControl: false})

map.addControl( L.control.zoom({position: 'bottomeleft'}) )

Matt Nodurfth

unread,
Jun 4, 2013, 10:06:30 AM6/4/13
to leafl...@googlegroups.com
I knew this was going to be amazingly simple...

 Thank you so much Stefano, it was a great help!


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/52-tEpyST_M/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Stefano Cudini

unread,
Jun 4, 2013, 10:54:05 AM6/4/13
to leafl...@googlegroups.com
it's a pleasure
careful order where you put other controls in the same position
Reply all
Reply to author
Forward
0 new messages