Closed (fixed)
Project:
IP Geolocation Views & Maps
Version:
7.x-1.24
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Sep 2013 at 16:16 UTC
Updated:
19 Mar 2014 at 04:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dancor commentedComment #2
dancor commentedI am using this code:
http://blog.shamess.info/2009/09/29/zoom-to-fit-all-markers-on-google-ma...
so now my code looks like this:
Comment #3
rdeboerThe option you talk about is available when you use IPGV&M with Leaflet.
If you've made it work with Google Maps, then great! Thank you.
Can you please do a proper diff? How am I supposed to figure out which lines you changed?
Rik
Comment #4
dancor commentedOh ok, didn't know this.
Is the diff ok?
Is the leaflet option better or should I keep the google maps version?
I need to use the custom markers and other custom images ...
Comment #5
rdeboerThanks for the patch!
You don't need to use Leaflet, but it could be worth a look. You can always switch back to Google, if there's a function in Google that Leaflet does not support.
You get a lot more map styles when using Leaflet....
See the "Leaflet More Maps" module project page and the link to the demo on that project page.
You also get the option to fill your markers with font icons: http://flink.com.au/ramblings/spruce-your-map-markers-font-icons
Rik
Comment #7
rdeboerRe-opening this, to remind myself to apply and test the patch from @dancor in #4.
Comment #8
eloivaquethe patch of comment #4 Work for me
Comment #9
nigelcunningham commentedHere is a simple reroll of the autozoom patch, but I think it needs a check of the centerOption around the last chunk, and I think the locations.length check should check for the length being > 0. If there's one marker, zooming to it is still valid.
Comment #10
rdeboerThanks NIgel & dancor!
Need to apply this soon.
Rik
Comment #11
rdeboerImplemented. Checked in with attribution to dancor.
To use: select "Use the center of the rectangle whose sides are defined by the left-most, right-most, top and bottom locations (this option is insensitive to location clusters)."
Comment #12
rdeboer