Posted by kaakuu on December 13, 2009 at 3:49am
2 followers
Jump to:
| Project: | Node Map |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
How to show a composite map that shows all the node locations on a single map?
Gmap has this enabled by default -> install gmap -> node locations menu automatically added -> clicked this takes a page which shows map with multiple balloon/markers showing overview of different node locations across the globe.
Just want to do this with yahoo maps. Any helps/workaround/alternates will be of great help.
Comments
#1
The location/gmap module does this well as you say - and you can configure it with Clusters as well, which is useful if you have lots of nodes. But it looks like the node map has advantages when inputing the location information...
Maybe its possible to use the node map module to input and the gmap to display? There are quite a lot of CCK extras and this is something I'll be trying out so will post back if any luck,
cheers, joe
#2
Hi,
Just had a play around with this module and I dont think this is possible to have all the nodes show up on one map - or to use the module in conjunction with other mapping modules yet. I dont think this would be too hard to do, though - would just involve hooking into CCK so that the lat/long points are available to other modules like the Geo field. I'll start up a new post about this.
cheers, joe
#3
hi,
Got this working well now - using the following modules only:
Node Map
Openlayers
Views
(Openlayers is a mapping module with excellent views integration, it can display a numbre of maps including gmaps, and it has a really nice gui)
Now, I add a new node and select the place name using the node map gui. Views then passes the lat/long info straight into openlayers, and openlayers displays all onto a map. When you click on a point, a pop up comes up with the node title (linked) and the node body.
I did this by following the tutorial here to the letter: http://drupal.org/node/627816 - then at the end I added the node map latitude and node map logitude fields to my view, and changed the openlayers data display to get the lat/long info from here instead of the fields laid out in the tutorial.
Openlayers can be tricky at first but once it works its great.
Now I have a map containing points of all my 'location' nodes, with pop ups which link to the nodes them selves. I can also use views to display the nodes I want - eg flagged nodes, or nodes from a specific author, or nodes according to the url. This could be very useful with voting in mind - you could say only show those nodes with over a certain amount of votes etc etc.
Only thing to test will be how well it handles lots of nodes - there seem to be various clustering options though...
cheers, joe
#4
Thanks. If you can post or paste the Views export and/or any other exported texts that will be great!
#5
My views export isnt standard by any means and the open layer stuff is hard to describe (the tutorial on the OL page does it best) However - I have since found a simpler way to do this using the gmap module and not openlayers. http://drupal.org/project/gmap
If you download the dev version of GMAP it now has a really cool feature of marker clustering which is why I explored GMAP - its really good for lots of nodes:
EG - http://googlegeodevelopers.blogspot.com/2009/04/markerclusterer-solution...
So here is a description of the view - its very quick to create.
- Just enable gmap and node map.
- go to the gmap settings and enter a Google maps key (its free but you need to get one for your domain)
- Now go to views. Add a node view. add a filter type node:type and select your content type (the one that displays your location info eg page or map etc)
- Add 2 fields: nodemap:latitude and nodemap:longitude.
- Now for a style plug-in select gmap. Data source > choose lat and long from fields. Then update, and save.
- Now add a page display. Add a url for it to be found at and press save. Now go to the URL and you will see your points on a map hopefully!
If not or any other Q's get back to me, and if I can find time I'll do a quick view and post.
cheers, joe