I have latest GMap from CVS on 4.7.2. My intention is just to map node locations, specifically for events, albeit flexinode ones. I can get these nodes to read on the node location page supplied by Gmap, but I'm having a few problems.
1. I can't get clusterer.js to work. Does the gmap.module, gmap.js or any of the other files need to be edited? (I noticed that in clusterer script it says do a few things (http://www.acme.com/javascript/Clusterer.js), but the Gmap instructions seem to suggest that all you need to do is click the checkbox in the settings. I also copied the script to /misc in the event that was needed. (I have several events in the same city and the default view of the U.S. they are of course sitting on top of each other...so I'm hoping to clusterer.js.)
2. What exactly is the status of the integration with location.module? is the the case that anyone who posts their location info will also have to either a) use the map to find their latitude and longitude or b) enter the value manually? I can't tell if gmap_location.module is supposed to do it - in any case it hasn't worked for me.
3. But meanwhile, the google map in the add node form used to locate lat and long has disappeared. it was working earlier, and i'm pretty sure i've check through anything that could have possibly affected it. I can enter the values for long or lat, but there's just a big empty space where the map used to be.
4. Views - I haven't been able to get Gmap views to work at all. The same settings work to generate list and table views, but gmap comes up blank.
Any suggestions for these issues?
Thanks in advance!
Comments
To answer your questions: 1.
To answer your questions:
1. The best way to tell if clusterer is working, is to do a view source and see if there if the clusterer js file is loaded. The reason that you aren't seeing what you expect, is that you probably misunderstand how clusterer works. The clusterer functionality only comes into effect when you are drawing a large number of markers, then it tries to cluster them, when there are less than about 200 markers it doesn't do anything no matter how close together the markers are.
FYI - Adding the script to misc is a good idea, but not necessary. If you do not add it to /misc it will remotely load it from acme.com. If his website goes down, then it can cause delays on your page (this happened once).
2. the gmap module will display any users who have their latitude/longitude information in the location table on the map/users. Unfortunately the location.module does not create lat/long entries for users (only for nodes and only in some cases). Therefore the functionality was added to the gmap_location.module so that it can be done there. For nodes you can either use the lat/long setting of location module (whether geocoded, manual, or entered using an interactive map) or you can use the capability built into gmap_location.module. In either case you will need gmap_location.module to be active.
3. Not sure what that could be. Is there any javascript errors on the page? That can cause a disappearing map.
4. Without knowing more details, it is difficult to troubleshoot a views problem. I will say that it has worked for me and presumably the person who submitted the patch for view integration as well.
-James (webgeer)
Views problem
I had the same problem with views (#4 above) and discovered that it only works if every node has a lat/long entry. If this is blank, it causes a javascript error and the map doesn't appear.
That makes sense, I will fix
That makes sense, I will fix that in gmap.module now. Should be up shortly.