Author: dom Date: 2006-03-05 21:24:21 +0000 (Sun, 05 Mar 2006) New Revision: 740
Modified: trunk/templates/map_index.tt Log: Fix Google Maps dms bug, fixes #75.
Modified: trunk/templates/map_index.tt =================================================================== --- trunk/templates/map_index.tt 2006-03-05 11:53:09 UTC (rev 739) +++ trunk/templates/map_index.tt 2006-03-05 21:24:21 UTC (rev 740) @@ -12,6 +12,8 @@ [% metadata = node.node_data.metadata %] [% i = i + 1 %] [% IF metadata.latitude.list.first AND metadata.longitude.list.first %] + [% NEXT IF metadata.latitude.list.first.match('m') %] + [% NEXT IF metadata.longitude.list.first.match('m') %] <li><a href='#' onclick="marker[% i %].openInfoWindowHtml(htmlString[% i %]); return false;">[% node.name %]</a>[% IF metadata.city.list.first %], [% metadata.city.list.first %][% END %]</li> [% END %] [% END %] @@ -33,6 +35,8 @@ [% i = i + 1 %] [% metadata = node.node_data.metadata %] [% IF metadata.latitude.list.first AND metadata.longitude.list.first %] + [% NEXT IF metadata.latitude.list.first.match('m') %] + [% NEXT IF metadata.longitude.list.first.match('m') %] var point[% i %] = new GPoint([% metadata.longitude.list.first %], [% metadata.latitude.list.first %]); var marker[% i %] = new GMarker(point[% i %],baseIcon); [% IF metadata.source %]
openguides-commits@lists.openguides.org