Posted by cfleek on September 5, 2008 at 3:06am
I have the pleasure of building a new site for a new charity being launched. I'm still a n00b, so I'll be using a canned theme and just using basic modules. I think the harddest part of this site for now anyway will be that there are about a hundred chapters all across the US. I'd like to add a node displaying these chapters with contact information using Google maps, unless someone knows a better way.
I'm very excited to get this going the founder of the Organization will be featured on Rachel Ray next month and we believe that the website will be announced!
Thank you in advance!
-Craig

Comments
I was looking about a month
I was looking about a month ago and sounded like mapping was still a little ways off for Drupal 6. The general idea was to add the location module to store CCK addresses, and then a mapping module. I was finding it tough to get some intersections so I planned a module for...
- An ancillary table with goog lat/ long
- hook_menu and node_feed() for rss including locations
- a simple map script
Good luck on your project. Let us know how it comes along!
I did it!
Well, I should say I found some code on the internet that worked perfectly withing Drupal 6.4.
It's not module based but the end result is what I'm looking for. Simply a Google map with pointer to different locations. It took me a few hours of playing with it to get it to look the way I wanted. So far a couple pointer loaded and a hundred or so to go!
Now, is paypal the best choice for a donation system?
more info
Can we hear more about what you found?
geotagged taxonomy terms.
After some brainstorming we found a solution by giving taxonomy tags a
location, then letting uses give them self a location tag. This will
allow for auto-complete and subsequent tag location. If the city
(term) isn't geotagged yet, you can let the user do it, or let them
know that it's not found.
Your job becomes the pre-loading, which we knew all along.
whats the site?
sounds interesting
but fyi... I think you could do it be creating a CCK node, wiht a field for a geolocation.
the use the phpfilter module to display the map... just use a loop to build the list to send to google maps.
no new node
Maybe I didn't explain well enough. The idea was to give users a geolocation. Currently the location module and gmap make for a clunky interface, where users have to click on a map or enter their long/lat. because the zip and country lists don't automatically connect up yet with the map.
This is a method to make it transparent to the user about the data entry, then later display a map on their profile, their nodes, or for all users.
Geo coding...
I'm sorry I missed your request for more information. I either didn't get the email, or it got buried in with the rest of email I'm receiving now since I became involved which this charity group. Here's a link to the map I created http://www.freecakesforkids.com/node/7 I really should say "I" created it because all I did was find scripting that worked for what I needed it to do. I think currently I have over 150 markers and will be adding an additional 150+ that I have on file. This has definately been a bigger project than I ever imagined, but I'm having a lot of fun with it, and learning a lot along the way. I've been tinkering with Civicrm as it has geocoding as well, but it's mapping hasn't been updated to d6 yet.
-C
Gmap locations tied to taxonomy terms?
Hello
I am building a site for a federal agency that works in various countries around the world. What they need is a map on the front of their site with a "Where we work" function.
Right now, I have the taxonomy set up so they can select the country to which their entry, called a task order, pertains to.
Is it possible to tie a taxonomy term to a location so when they create a task order and have it categorized as being in say, Moldova, it will show up on the map?
Thanks!
Not sure if this totally addresses this...
I don't completely follow what you are trying to do, so I'm going to describe what I know works using
Location + GMap module. Other options can include using OpenLayers, but that's a little beta at this point, and a lot more to learn.
First I'm unclear if you need exact points on the map related to to a task order, so you can get a map of a country with all the related tasks, or you just need a map zoomed to the country? I'm going to describe the former.
With the Location module you can add locations to your "task order" node types with a CCK field, or with built in locative information fields (found on the content type admin page). The interface has a map that the user can click on, but if you don't give your users the right to supply lat/lng values they will just be able to enter addresses. You can set the location module up to handle geocoding through google. Make sure that you turn the country field on or geocoding will not work. Also remember that the Location module needs your Google Map API key as does GMap.
In your GMap module configuration, make sure you set it to zoom to all shown markers.
Finally you create a view with the type GMap. As one of the filters you add Location:country, and then expose it. That should create a map where a user can select "Moldova" and have the map zoom to it. Alternately you may want to use the country as an argument instead of a filter.
Hope that helps.
RE: Not sure if this totally addresses this...
Thanks for your response.
Basically, they want a world view with markers that show up on the world view every time a task order is tagged to a specific country( since the taxonomy only goes as deep as the country level.
I was wondering if there was a way to set specific lats and loins for each country.
What they need is an interface that lets a user click on a marker that's on the world gmap, say in Moldova, India or Honduras and a have a page view brought up with all the task orders that are tagged with those individual countries..The gmap would go on a pane on the front page.
This needs to be an easy process that non-tech savvy administrative assistants can handle.
I hope that clears it up.
Thanks again for you help.