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

mdowsett’s picture

Status: Active » Fixed

I ended up just doing custom URL links like:
/map/user/center=49.20683172516031,%20-122.7337646484375/zoom=9

Trav-1’s picture

How do you create diffrent maps?

mdowsett’s picture

I 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)
mdowsett’s picture

this isn't fixed...

mdowsett’s picture

Status: Closed (fixed) » Active

this isn't fixed...

manuel garcia’s picture

Suscribing... 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).

ultimike’s picture

The 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

zhte’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Category: support » feature

A 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

manuel garcia’s picture

OK, 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,

  1. Open Arguments -> Argument Handling Code.
  2. Enter the code of your new gmap macro like this: $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. :)

mttjn’s picture

how do you do this in Views2? Where does the Argument Handling Code go, please?

podarok’s picture

Status: Active » Closed (won't fix)

release unsupported
feel free to open issue against latest 7.x dev