Hi,
Autozoom its really great!
I´m using gmap.module,v 1.45 2006/10/25 04:35:45 and 4.7.4

It works fine for node and users map, but I guess its not working for Gmap views. Again, I´m not a experienced programmer and as per I could see, gmap views is constructed at the end of gmap.module (line 1215) and it hasn´t embedded the "bounds.extend" (line 374) for each overlay and the final calculus of the new map center (line 380).

I´m really commited to help but I don´t know how to patch this code in order to improve this feature, then, I ask if someone can.

I guess this feature could improve gmap, i.e. when you to want show nodes filtering different locations or neighborhoods.

Thanks in advance,
gustavo

Comments

adminfor@inforo.com.ar’s picture

Category: feature » bug

I change the category to "bug". Under my point of view, if Autozoom parm is enabled, should be working no matter of the implementation, nodes, views, usersmap and nodemap.

hickory’s picture

Yes, this would be excellent if it worked.

mshaver’s picture

I'm also looking to get this working with gmap views. Any progress? I could provide some support funds if someone could do the programming.

leobaby’s picture

Does anyone have a fix for this? It would really make my site much happier.

stanbroughl’s picture

+1 this would be great! or an option in views to set the boundaries of the map

challer’s picture

+1, I would also like to see autozoom for georss feeds, since I have a lot of these kinds of pages... http://icommunity.tv/taxonomy/term/17

patchak’s picture

Is there anything new coming for this feature? I mean honestly it does really make sense to use a gmap view if the map cannot automatically zoom at the right position?? At the moment I guess we can use a very zoomed out map.. but it does not really seem ideal does it?

adminfor@inforo.com.ar’s picture

I agree 150%. Without autozoom doesn't make sense. I've deactivated it in the meanwhile.
Rgds,
Gustavo
http://www.inforo.com.ar

artatac’s picture

Re User locations > I could not get this to default to 'Zoom to users' It insists on showing me the whole of Europe and beyond even though the users are all in the uk. So I went to /map/macro zoomed in to the UK and then used the [centre and zoom] settings to manually alter /admin/settings/gmap_location. Hope this helps others but surely this can be sorted as a critical bug

Thanks

Joe

mikepetersonwi’s picture

I'm having the same problem. If I stumble into a fix or work-around I'll be sure to post it back here.

Subscribing,

Mikep

mikepetersonwi’s picture

I have a possible work-around for this one. For testing purposes I went in to the GMap configuration screen and set the default zoom level to show all possible markers, in my case that was an entire state (Zoom level 7). The Map Behavior flags I checked are: nokeyboard, autozoom, and collapsehack. Then I shut off the Marker manager as I'm restricting filtering by exposed filter to only 25 miles from the Postal Code entered.

Now when first entering the View, it briefly shows the default view size (the entire state) and then zooms and centers to the appropriate screen size for the Postal Code if defaulted or the Postal Code later submitted via an exposed filter.

Hope this helps someone out.

Mikep

harry slaughter’s picture

Version: 4.7.x-1.x-dev » 5.x-1.0-alpha1

Updating version info as this problem still exists as of 5.x-1.0-alpha1

Also, confirming workaround in comment #11. Turning off the marker manager seems to allow maps to autozoom properly, but only after showing the default location/zoom first.

emersonlenon’s picture

What I would like to see if a way to set the map center and zoom level when you create a view.
Currently I have modified the php code in the gmap.module file to approximate this, but for each view I have to add that case into the code and this would not be ideal.
Is this on the table as a possibility?
I am sure this would extend the usability of this excellent module greatly.
Thanks for your hard work.

mennonot’s picture

mikepeterson's suggestion in #11 worked for me, but I'm subscribing in case something better comes along.

EvanDonovan’s picture

I have also been encountering this issue with Gmap Views 5.x-1.0-alpha1 and am currently using no marker manager, as in #11. Does anyone know approximately how many markers can be displayed at once without a marker manager before there is significant performance degradation?

The autozoom feature does not work with Clusterer2.js either.

marcoBauli’s picture

confirming, autozoom works great but jams when Clusterer2 is activated

EDIT: this actually happens on Views generated maps. Works fine in gmap_location block.

mortenq’s picture

subscribing

wpoehner’s picture

subscribing

EvanDonovan’s picture

The center-and-zoom functionality is working for us at www.urbanministry.org on 5.x-1.0-beta2, with Google's GMarkerManager enabled.

To see an example, go to www.urbanministry.org/org & search for 02122 in the Organizations search.

See if the upgrade solves the problem for you.

surbhi’s picture

Title: Automatically center and zoom to fit all markers in Gmap views » Zooming by draging a scrollbar in Gmap
Version: 5.x-1.0-alpha1 » 6.x-1.x-dev

Hello
Is there anybody who can make me learn how to zoom in Gmap when I drag the scrollbar.

lotyrin’s picture

Title: Zooming by draging a scrollbar in Gmap » Automatically center and zoom to fit all markers in Gmap views
Version: 6.x-1.x-dev » 5.x-1.0-alpha1
Status: Active » Closed (fixed)

surbhi: please don't hijack this issue for your question.