Posted by mrb on July 24, 2007 at 2:21pm
If you have a site that does this, please could you let me know the address?
Our site www.batgung.com has been on drupal for over a year, but runs a fairly standard install. A lot of the content for the site is about places in Hong kong. I'd like to extend it to include a map.
So my first step is to see how easy this is for users. Ideally I'd like it so if they click a marker they are shown the related node, but if they double-click the map they are prompted to create a new node. Not sure if that's possible or not, so I wanted to see what other people have done to get some ideas.
Many thanks.
Comments
Users adding nodes with geographic data
Placeblogger.com does this. But users are filling in a city/state or province pair, or sometimes a street address. If you figure out a way to do it by letting users click on a map and have that auto-populate the geographical data, let me know! I'd love to see it.
That's achievable
I can only give general direction as complete implementation is dependent on the full site design and implementation.
In a nutshell - the map you create should be created with the "locpick" element to equal 1.
In greater depth - TIMTOWDI (Perl's slogan which means "there is more than one way to do it" :-) ) applies also to making maps. For example, you can create a "view" of a type gmap. Then, in your theme files theme the gmap view to have this property (at the end of things there, you're calling
<?php// $map_definitions_array was just prepared to hold the map configuration.
// Among the rest, it contains now an element 'locpick' => 1
$output = theme('gmap', $map_definitions_array);
?>
The resulted map is enabling users to do just what you wanted - choosing their location based on thei click on the map. No geocoding, BTW, is needed afterwards - the coordinates are already given by their map point selection.
I hope this helps.
Boaz
PHP therapist
pawmap.com
Is such a site. New users can mark their location on a map.
http://www.pawmap.com
Boaz
PHP therapist
How to add location in pawmap?
I logged in but couldn't see how to add my location. (I realise it's in beta, so no sweat if it's not working just now). Thanks for the tip on coding too - I'll keep that for when the hard work starts.
Lisa, thanks for your input too. I expect we'll offer both typing an address and using a map as options to specify location.
Any other good example sites out there?
Thanks, MrB
Do this in order to see the map on that site
One needs to be logged in (create a new user if needed)
Click "account settings" in the upper right corner.
Click "Edit your profile" and somewhere there you're supposed to feed in your location.
Boaz
PHP therapist
Places as Polygons
Take a look at the interface we created to allow users to attach polygons to nodes on OurTahoe.org called Places. I think the thing keeping people who are active in mapping to develop more advanced modules for Drupal is the lack of a standard way to deal with true spatial data. Places uses PostGIS. I was really hoping the Geo module was going to become the standard to build these types of modules on, but there hasn't been much activity there.
It takes a bit of work.. but it can be done!
see
www.runireland.com/events_map
also
http://www.fivestarshortlets.com/locations
Regards
Alan
GreenMap.org
http://www.greenmap.org is the Drupal 4.7 site I've been working on that allows our network of members to include location info with nodes. Because our users are international and there is limited support for geocaching outside North America and Europe, on our site you click a link to create a new node (custom content type created with CCK) and then click on a map to set the lat & long.
I've never come across anyone who's combined a map displaying all nodes with the ability to double click a blank space to create a new node. I'll be interested to see what you figure out.
http://www.thomasturnbull.com
http://twitter.com/thomasturnbull
Thanks for the examples
The http://www.ourtahoe.org/places/ site is closest to what I imagined - a map on left, node details on right, and use the map to create new nodes. The other examples give good ideas on how to display information on maps.
So my next step is to understand how gmap_macro_builder.module works, as that seems to have many of the basic operations I'm interested in.
From there it looks like I'll need to understand CCK and the Location module, as a way to create nodes with location information.
After that I'll worry about how to display the map and node information on one page.
Does that sound like a reasonable plan of attack?
Regards, MrB
help like this
Hello all Drupaleros:
I want people like you to explain me process I want to start,
I want my user users to register and enter my web. (no problem).
Then I want them let insert an announcement into my web and let them insert into a general web map direct with mouse the announcement location.
When the add ins introduced and confirmed, a flag opens side to the marker announcement and pressing it opens a web page for the announcement.
Can you help me to do that?????
I would aprecciate too links, tutorials and all kind of information.
THANKS to all and goods save drupal!!!!