Hey guys, I've done some searching, and it seems everyone wanting to use Gmaps and Drupal 5.1 is at different stages of patching and workarounds.... it's kind of tricky to follow, so I was wondering, has anyone got it working yet?

I'm wanting to simply have users submit a story node, which they choose the location of on a google map on submission. These are then all displayed on a world map.

Any pointers?

Thanks

Comments

mediafrenzy’s picture

Anyone? Google maps are widely used, someone must have them working properly with Drupal 5.1?

j0k3z’s picture

I need this as well

mediafrenzy’s picture

Can anyone confirm whether this is possible yet?

bchoc’s picture

I setup a sort of proof-of-concept 5.1 site for a local nonprofit (a prairie watch group) to demo how the map might be integrated with comments and whatnot. I used current (May 15th) versions of Location, Gmaps, CCK, and Views (plus Node Import to bring in some spreadsheet data and Pathauto to dress up the URLs).

I ran into some difficulty with anonymous users seeing the map markers, but rather than really look into it I just made everyone login. :-) This is a demo, remember.

Other than that, it was extremely straight-forward and simple to pull off. . . took me less than an hour to get it going, I'd guess, and everything is pretty much in an "out of the box" setup.

If you want to see what I setup for the nonprofit, you can visit http://www.lue42.org/pd which is my little sandbox for this demo. The username/password are 'testuser'. It won't be up indefinately, but at least for a little while longer.

twentyniner’s picture

I updated my CCK and Views to the latest versions to match your setup. I must have some setting wrong because I can't get the title or anything on a node to popup when clicking on a marker. I checked our your sample site and they work fine which clearly shows it works. I'm about to give up trying but hate to because I know I'm really close. One difference is anonymous users can view the maps and see the markers but nothing happens when they click on them either. You should be able to allow anonymous users access by going to admin/user/access and selecting 'show node map' under the 'gmap_location module' section.

Someone take a look at http://bikekentucky.com/map/node and let me know if you see anything odd.

twentyniner’s picture

I brought up your map and mine and then did a view source. The map part of the code is very different. There are a lot of slashes in your map configuration and not one 'tooltip' entry but instead 'text'. In mine there are zero slashes and no 'text entries but a 'tooltip' for each.

bchoc’s picture

When I bring up your page, it looks like it's working. I click on the bubble over Sumerset, for example, and get Cumberland Cycles, which will take me to a page about that shop.

I was going to suggest the "Marker action" setting in Gmap, but it seems you've made it work, now.

akaney’s picture

The proof of concept that you set up is exactly what I am looking for. One question I have, on your Submit Prarie Dog Colony page, how did you set up your location group? I am guessing it is a CCK module that I am missing that allows for the map and city/state boxes. I must be missing a module that allows for this information to be submitted. Also, are the lat/lon boxes extra, or are they a part of the module that I am missing?

Great work, and thanks for the example site.

bchoc’s picture

Get the Location module. ideally, this would be a CCK field (and it may be someday), but right now it is its own thing.

robotjox’s picture

subscribing...

MacRonin’s picture

subscribing also ...

-------------------
http://www.PrivacyDigest.com/ News from the Privacy Front
http://www.SunflowerChildren.org/ Helping children around the world

twentyniner’s picture

I'm running 5.1 and I have gmap and location working. User Locations work and Node Locations work as far as allowing them to have locations entered and they show up on the user/node map. However, my one problem is that the pins don't respond to clicks. I've messed with settings; do nothing, show info, go to link but get nothing. I've tried different browsers, messing with the code some and still nada.

rick hood’s picture

I am having the same problem. All is working except for clicking the location pins. Based on having used earlier version in Drupal 4.7, clicking a pin should either show the node teaser in a pop up on the map or send you to to full node. Not sure what the problem is.

rick hood’s picture

I was using Gmap 5.x-1.x-dev. I uninstalled it and installed Gmap 5.x-0.6.

Another thing I did differently is in the 'Marker manager' section of Gmap admin, I picked 'No manager (use addOverlay directly)'. Before I had picked 'Jef Poskanzer's Clusterer'.

It's working now - doing the pop-up thing when clicking a pin.

ymmatt’s picture

I'm having the same problem as above but cannot get the bubbles to pop up at all. I've set everything as stated above but still can't get it working.

If I create a gmap using the macro I can insert the popup info and all works fine, but on the map/node page no bubbles work

Drupal 5.1

gmap.module,v 1.51.2.82

location.module,v 1.79.2.9

georss.module,v 1.6.2.3

ymmatt’s picture

It seems like the tooltip is set, but why isn't it giving me a bubble?

<script type="text/javascript">Drupal.extend({ 
  settings: { 
    "gmap": { 
      "nodemap": { 
        "width": "560px", "height": "400px", 
        "zoom": 13, "controltype": "Small", "align": "None", "maptype": "Map", 
        "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], 
        "behavior": { "locpick": 0, "nodrag": 0, "nokeyboard": 1, 
        "nomousezoom": 0, "autozoom": 0, "dynmarkers": 0, "overview": 0, "notype": 0 }, 
        "markermode": "1", "id": "nodemap", 
        "lines": {  }, "longitude": "-87.7199935913086", "latitude": "41.85313250615987", 
        "markers": [ { "latitude": "41.862482", "longitude": "-87.706239", 
            "markername": "small blue",  "tooltip": "3215 W. streetname Blvd." }, 
              { "latitude": "41.862482",  "longitude": "-87.705971", 
               "markername": "small blue", "tooltip": "3211 W. streetname Blvd." } ], 
        "querypath": "http://mywebsite/map/query" 
      } 
    } 
  } 
});</script>
ymmatt’s picture

Well, even though there have been no replies in 2 weeks the module developers have output 4 revisions. I updated to the latest version and the bubbles appear.

-Matt

ibagur’s picture

Hi,

I got the following modules installed:

gmap.module,v 1.51.2.104
location.module,v 1.79.2.14

Evrything works ok and the markers for the map nodes show up in the map. When clicking on any marker I got the tooltip popups, but I got them empty, no info from the Location (i.e. tittle, street, city, etc.) appears there. What am I doing wrong? Thanks

L3na’s picture

Hi Guys,

Look I am sorry if this post is really newbie-ish but I have read the README for the GMap module and I am stumped on how to install it. I have been managing so far, but can someone tell me what the creators mean by these instructions?

6) configure an 'input format' so that the gmap filter is activated. If this will be on a 'html filtered' format, ensure that the weighting is such that the HTML filter comes before the gmap filter.

7) (optional) To use clusterer.js (useful if you have more than about 100 markers on a page) get the javascript file from http://www.acme.com/javascript/#Clusterer and copy into your gmap directory

8) (optional) To use wms features get the script http://dist.codehaus.org/geoserver/gmaps-geoserver_scripts/wms-gs-1_0_0.js and install it in your gmap directory.

I basically have the module showing up correctly in the Admin panel, but I don't understand how I am meant to then make a page\node with a map on it. I.E. how do I make content with this thing? I have copy and pasted the macro that I created using the admin page [gmap|id=locmap|center=40,0|zoom=3|width=100%|height=400px] into a plain page hoping it would somehow, miraculously start working but no luck.

I am using Drupal 5.2 and have a feeling that the answer is really obvious but that I'm just not seeing it.

L3na’s picture

Worked out what was meant by "input format". Sorry, it's my first time configuring them so I didn't know where to look. Thanks. :)

ceo3141’s picture

L3na -- I am having the same problem as you had . . . I have the module installed, but how do I use it to create pages? That is, what do I do with the macro text?
Thanks.

ceo3141’s picture

Lol -- I have answered my own question. For anyone else looking for this answer, this is what you do in Drupal 5:

Enable the GMap module.
Go to Administer>>Site configuration>>Input Formats>>Filtered HTML input formats,
enable GMap Filter.

Toddv’s picture

Not sure this is still pertinent but...
I am using Drupal 5.1, Gmaps (and cck_map). After some a half day or so of reasearch and learning I got them all to play nicely together. I am not a programmer whatsoever.

My site is still in development for a deployment planned by Feb 1.
You can see the map implementation at friendsoftheinyo.org/foi/event_map

My situation is we schedule and implement various events throughout the year and throughout our region. I wanted to be able to provide a map-view sortable by year (et al - haven't built in the other sorting fields yet) and from which users could navigate to specific events. I believe it is working now though I need to check it out on other platforms and browsers.

Anyway, if you have a similar circumstance and/or are having troubles getting it set up pm me or post here and I'll see if I can be of assistance.

The video cast at http://zacker.org/screencast-drupal-mashup-machine was quite helpful but it seems one key change between Drupal versions was the inclusion in the View Editor window of a "Gmap View" option under view type. I have to admit it took me a while to find that...

TV

joe4’s picture

Here is a working demo used for locating a adoption agency.

http://www.adoptionagencyratings.com/map/node

You can also search by location.
http://www.adoptionagencyratings.com/search/location

GMap 5.x-1.x-dev
GMap Location 5.x-1.x-dev
Location 5.x-1.x-dev

Everything works out of the box. Loads slow but the clusters feature did not look good to me. It added to many adoption agency to one marker.

I would like to find out how to add the adoption agencies five star rating to the popup instead of just a link. If anyone needs more details just ask and I will help.

osu_bucks’s picture

Nice Site! Do you have instructions on how you set up your map? Does your map retrieve the data from a static file or from the database? I'm trying to plot events from event module to gmap, but I don't know where to start.

thanks

joe4’s picture

Thanks,

Here is more detail on the site setup. http://drupal.org/node/206397
It retrieves data from the database.

--------------------
Adoption Agency Reviews http://www.adoptionagencyratings.com

Jason Dean’s picture

I've followed the install guides and video cast http://zacker.org/screencast-drupal-mashup-machine and made some progress... but am a bit stuck what to do next...

Gmap view here: http://www.blacknest-marketing.com/test/lcdmap

Basic location node here: http://www.blacknest-marketing.com/test/node/2

I tried changing the Gmap view so that it picks up these Longitude and Latitude fields (both text integers), but when I try to save it says:

GMap View requires: either "Location: Latitude" and "Location: Longitude" or a field titled "Latitude" and a field titled "Longitude"

So I have to set the fields back to Location: Latitude and Location: Longitude for it to save - it doesn't seem to like my fields?

1) How do I get the map to display using the data from my node fields?

2) Is it possible to use Gmap view to enable users to create content and place their own pointer, without having to enter co-ordinates into a form? I played with cck_map plugin and it does that, but people on this thread seem to be doing it with Gmap...

Bit of a newbie here in case you hadn't guessed ;)

Thanks!

fuldespanto’s picture

I have the same questions as you, however I've been able to avoid such "gmap view requires..." message by creating two decimal text fields on the node type called latitude and longitude (internally named field_latidude and field_longitude), and then adding them to the gmap view, AND finally setting the respective labels to Latitude and Longitude (case SENSITIVE). That way my gmap view could be created. But sadly there must be something left to do, since despite the google map is loaded, it doesn't show any node marker.

Newbie too ;-)

mrgoltra’s picture

..
hi,

I was wondering if you have successfully implemented this? I am stuck. I have installed location, gmap and created a view but the markers are not showing up. Any ideas or advice?

Thanks,

Mark