summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lsces@lsces.co.uk>2011-03-10 16:26:47 +0000
committerLester Caine <lsces@lsces.co.uk>2011-03-10 16:26:47 +0000
commit453db6e43dd9a14fc318f2c3406f53b778140903 (patch)
treedf94ab30d7c18c4650c41c020a8c3f9da1d64f21 /templates
parentb18b822d9ee3814e5615035bf9936d3c79316558 (diff)
downloadcontact-453db6e43dd9a14fc318f2c3406f53b778140903.tar.gz
contact-453db6e43dd9a14fc318f2c3406f53b778140903.tar.bz2
contact-453db6e43dd9a14fc318f2c3406f53b778140903.zip
Swap x and y so they are lng and lat not lat and lng
Diffstat (limited to 'templates')
-rw-r--r--templates/display_address.tpl10
-rw-r--r--templates/list.tpl4
2 files changed, 7 insertions, 7 deletions
diff --git a/templates/display_address.tpl b/templates/display_address.tpl
index c07b742..28e3d35 100644
--- a/templates/display_address.tpl
+++ b/templates/display_address.tpl
@@ -28,15 +28,15 @@
<div class="row">
{formlabel label="Visual Centre Coordinates" for="street_start_x"}
{forminput}
- Lat: {$address.x_coordinate|escape} Lon: {$address.y_coordinate|escape}
- &nbsp;&lt;<a href="http://www.openstreetmap.org/index.html?mlat={$address.x_coordinate}&mlon={$address.y_coordinate}&zoom=16&layers=BOFT" title="{$propertyInfo.title}">
+ Lat: {$address.y_coordinate|escape} Lon: {$address.x_coordinate|escape}
+ &nbsp;&lt;<a href="http://www.openstreetmap.org/index.html?mlat={$address.y_coordinate}&mlon={$address.x_coordinate}&zoom=16&layers=BOFT" title="{$propertyInfo.title}">
OpenStreetMap
- </a>&gt;&nbsp;&lt;<a href="http://www.bing.com/maps/?cp={$address.x_coordinate}~{$address.y_coordinate}&lvl=16&style=r&q={$address.postcode}#" title="{$address.title}">
+ </a>&gt;&nbsp;&lt;<a href="http://www.bing.com/maps/?cp={$address.y_coordinate}~{$address.x_coordinate}&lvl=16&style=r&q={$address.postcode}#" title="{$address.title}">
Multimap
- </a>&gt;&nbsp;&lt;<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&q={$address.postcode}&ll={$address.x_coordinate},{$address.y_coordinate}&z=16" title="{$address.title}">
+ </a>&gt;&nbsp;&lt;<a href="http://www.google.co.uk/maps?f=q&source=s_q&hl=en&q={$address.postcode}&ll={$address.y_coordinate},{$address.x_coordinate}&z=16" title="{$address.title}">
Google
</a>&gt;<br />
- Navigate to &lt;<a href="http://openrouteservice.org/index.php?start=-1.822164,52.073197&end={$address.y_coordinate},{$address.x_coordinate}&pref=Fastest&lang=en&unit=MI" title="{$propertyInfo.title}">
+ Navigate to &lt;<a href="http://openrouteservice.org/index.php?start=-1.822164,52.073197&end={$address.x_coordinate},{$address.y_coordinate}&pref=Fastest&lang=en&unit=MI" title="{$propertyInfo.title}">
OpenRouteService
</a>&gt;
{$address.rpa|escape}
diff --git a/templates/list.tpl b/templates/list.tpl
index 45c25e1..76f440c 100644
--- a/templates/list.tpl
+++ b/templates/list.tpl
@@ -59,8 +59,8 @@
{if isset($listcontacts[content].grideast) }
&lt;{$listcontacts[content].grideast|escape}&nbsp;,&nbsp;{$listcontacts[content].gridnorth|escape}&gt;&nbsp;{/if}
{/if}
- {if $listcontacts[content].x_coordinate }
- &nbsp;Exact Cords:&lt;{$listcontacts[content].x_coordinate|escape}&nbsp;,&nbsp;{$listcontacts[content].y_coordinate|escape}&gt;&nbsp;
+ {if $listcontacts[content].y_coordinate and $listcontacts[content].x_coordinate }
+ &nbsp;Exact Cords:&lt;{$listcontacts[content].y_coordinate|escape}&nbsp;,&nbsp;{$listcontacts[content].x_coordinate|escape}&gt;&nbsp;
{/if}
<br />
{tr}Refs{/tr}: {$listcontacts[content].refs|default:0}&nbsp;&nbsp;