I know you can create different maps...but can you have the same user location pins on different maps?
I am trying to have a map of all users for all of North America but users are saying it takes too long to zoom in to their area. I'd like to have the main map and then also provide links to regional maps...they'd all show the same user pins tho...
Comments
Comment #1
mdowsett commentedI ended up just doing custom URL links like:
/map/user/center=49.20683172516031,%20-122.7337646484375/zoom=9
Comment #2
Trav-1 commentedHow do you create diffrent maps?
Comment #3
mdowsett commentedI still want to know that myself. I am still using one map but just setting different zoom parameters in the URL I set the link to.
There doesn't seem to be any documentation to have more than one map.
Comment #4
(not verified) commentedComment #5
mdowsett commentedthis isn't fixed...
Comment #6
mdowsett commentedthis isn't fixed...
Comment #7
manuel garcia commentedSuscribing... I also would like to know how to create different maps for different gmap views
About that custom URL mdowsett,... I'm trying it on my view but it isnt working, any idea how to make it work on a gmap view? It could be a nice workaround (although not so clean looking url, but it would do the trick).
Comment #8
ultimikeThe problem with what you're trying to do is that currently all GMaps generated by GMap views share a single GMap macro for the default map options.
So, even if you were to use the usernode module to have users act like nodes, then use GMap views generate your various maps, at this time, I don't know how you would be able to have each view zoom in on a different region.
Have you thought about using one of the clustering scripts instead? They help reduce the number of markers on a map.
-mike
Comment #9
zhte commentedA way to do it could be pretty similar to the way taxonomy markers were recently implemented:
Create a table where taxonomy terms can be set to have a default centre and a default zoom (I have a site where nodes can be tagged with general location names), create a hook into the taxonomy module for administration (just like how taxonomy markers are defined).
Then in views call a field (just as taxonomy marker is a field for each node in map view) where that field allows the view-creator to choose a taxonomy term as the default to the map.
Given how well taxonomy markers were implemented I think a similar method for taxonomy locations could be done relatively easily and I would be really keen to see this implemented as a feature.
Taxonomy Markers + Taxonomy Locations + GMap Views = The Power of Views, For Maps
Alex
Comment #10
manuel garcia commentedOK, for those that only want to create a different gmap view that has a different map in it, here is how to do it:
On your new view,
$view->gmap_macro = "[gmap |center=41 |zoom=11 |width=570px |height=570px |control=Small |type=Map]";This will let you specify a different macro for each gmap view you create. I asume you could just pull the same markers into this map through the correct filters, or different ones, as you like. :)
Comment #11
mttjn commentedhow do you do this in Views2? Where does the Argument Handling Code go, please?
Comment #12
podarokrelease unsupported
feel free to open issue against latest 7.x dev