Hi there,
I am relatively new to Drupal so i still seem a little lost with embedding a map on to a node.
I am currently trying to make a website that lists the features of a property(house) its pictures and a map displaying where it is. The map is where i am stuck.
I embeded a map using a gmap cck but why cant this field get information of the location module(which gets geocoding information from the google website)
Any help would be much appreciated.
cheers
Nash
ps: i was not sure if i was meant to post this here or in the forums.
Comments
Comment #1
ray007 commentedThe gmap cck field doesn't yet have location integration.
You currently need to use either php-code or a gmap view.
Comment #2
nashINATOR commentedCheers for the quick reply Ray.
Have you had a chance to look at the See Map Module ? In that module you dine the fields that contain the location information on your form and presto automatically it gets a link on your node/page to the location on your google map.
Is there a way of using that module as a start and modifying it to display a map on the page instead?
Cheers Nash
Comment #3
Tadej commentedHere is a bit of a workaround I used for displaying the marker of the current node:
Created a Computed CCK field (let's name it gmap_getmynid) with the following entries:
Computed code:
if (!$node->nid) node_save($node);
$node_field[0]['nid'] = $node->nid;
Display format:
$display = $node_field_item['nid'];
This will return an array with the current node nid (in field field_gmap_getmynid). You do not have to display the field, but it's cool to see if it actually works. :)
In Google map CCK set Marker noderef: gmap_getmynid.
If you're doing this with already existing nodes, edit and save them otherwise the array is not populated.
And voila the map CCK shows the marker for the node it's sitting on.
Hope this helps,
Tadej
Comment #4
webavant commentedTadej, that sounds useful, but where in Google map CCK do you set Marker noderef: gmap_getmynid? Can you please me more specific?
Comment #5
Tadej commentedYour content type > Your google map view CCK field > configure
Marker noderef input field is in the Google Map settings box (at the bottom).
If you cannot see it make sure you have the Node Reference CCK module installed.
Best regards,
Tadej
Comment #6
bdragon commentedSee gmap_cck in GMap Addons.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #8
najibx commentedHow? Can yopu explain further. I didn't get it working.
When/where does the marker on for this node was set? Can we set the marker on the fly like the gmap macro?
If we edit this node, can we edit the marker as well?
Thanks
Comment #9
jupiterchild commented#8
najibx
I have added some instructions that work for me at:
http://drupal.org/node/288938#comment-1015305
Comment #10
podarokrelease unsupported
feel free to open issue against latest 7.x dev