Google Mapping

Thu, 08/09/2007 - 07:32
Submitted by alfred

Good example of making a map with numerous pointers and external links
http://www.acme.com/jef/hotsprings/

map/node sums up all the mapable nodes

This site creates numbers
http://www.webgeer.com/gmapdemo

---------------------------
Seems like I need to update two files
location.module and location.theme
I need to take the array of lat/long and loop through the below.
foreach(long as val)
add to array $mymap
then draw the map

The goal is to put the map inbetween the
search and the results as seen in attached screen shot

$mymap=array('id' => 'mymap',
'latitude' => '49.19258642226091',
'longitude'=>' -123.17647933959961',
'zoom' => 13,
'width' => '100%',
'height' => '400px',
'type' => 'Satellite',
'shapes' => $shapes,
'markers' => $mymarkers);

gmap_draw_map($mymap);

location.module NOTES
Line 164 function location_search_results($location_params, $proximity_params)
So for each valid location query from the location table the location info
eid
lid
latitude decimal
longitude decimal
And put these into the google array above
By adding ALL settings to line 84 of location.module instead of 164 I got the map to show, though now to make the daya dynamic

Todo
See why Map link does not show in results

AttachmentSize
API.txt10.57 KB
location_API.txt29.73 KB
Search-results-sketch-4.jpg_[Dvel6b].jpg569.74 KB

Post new comment

  • Allowed HTML tags: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • Insert Google Map macro.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options