diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2011-03-10 16:26:47 +0000 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2011-03-10 16:26:47 +0000 |
| commit | 453db6e43dd9a14fc318f2c3406f53b778140903 (patch) | |
| tree | df94ab30d7c18c4650c41c020a8c3f9da1d64f21 /templates | |
| parent | b18b822d9ee3814e5615035bf9936d3c79316558 (diff) | |
| download | contact-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.tpl | 10 | ||||
| -rw-r--r-- | templates/list.tpl | 4 |
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} - <<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} + <<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>> <<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>> <<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>> <<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>> <<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>><br /> - Navigate to <<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 <<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>> {$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) } <{$listcontacts[content].grideast|escape} , {$listcontacts[content].gridnorth|escape}> {/if} {/if} - {if $listcontacts[content].x_coordinate } - Exact Cords:<{$listcontacts[content].x_coordinate|escape} , {$listcontacts[content].y_coordinate|escape}> + {if $listcontacts[content].y_coordinate and $listcontacts[content].x_coordinate } + Exact Cords:<{$listcontacts[content].y_coordinate|escape} , {$listcontacts[content].x_coordinate|escape}> {/if} <br /> {tr}Refs{/tr}: {$listcontacts[content].refs|default:0} |
