Modified version of geomap javascript

I made this because I was very unable to understand the jquery.googlemap.js code using in the geomap module. The purpose of this module is to parse geo microformats in a page and display corresponding markers on a google map.

If you are working with Google maps maybe this wil be useful to you. I make it working with location module by formatting the display of locations infos as geo microformat :

<div class="geo" title="'. $node->title .'">
<p>
<strong>Street : </strong>'.$location['street'].'
</p>
<p>
<strong>House number : </strong>'.$location['name'].'
</p>
<p>
'.$location['city'].', '.$location['province'].', '.$location['postal_code'].'
</p>
<span class="latitude" title="'. $location['latitude'] .'"/>
  <span class="longitude" title="'. $location['longitude'] .'"/>
</div>

You can get the file here.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3> <h4> <abbr>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Spam control
8 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.