|
Revision 8220, 1.8 KB
(checked in by rvelices, 2 years ago)
|
|
rv_gmaps internal - prepare migration to api V3
|
-
Property svn:eol-style set to
LF
|
| Rev | Line | |
|---|
| [3447] | 1 | {html_head} |
|---|
| [6670] | 2 | <script src="http://maps.google.com/maps/api/js?sensor=false&hl={$lang_info.code}" type="text/javascript"></script> |
|---|
| [8220] | 3 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> |
|---|
| [8029] | 4 | <script src="{$PLUGIN_ROOT_URL}/template/nyroModal/jquery.nyroModal-1.6.2.js" type="text/javascript"></script> |
|---|
| 5 | <link href="{$PLUGIN_ROOT_URL}/template/nyroModal/nyroModal.css" rel="stylesheet" type="text/css"> |
|---|
| [3447] | 6 | |
|---|
| 7 | <style type="text/css">{literal} |
|---|
| 8 | #mapPicture { |
|---|
| 9 | position:absolute; |
|---|
| 10 | width: 310px; |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | #map { |
|---|
| 14 | position:relative; |
|---|
| 15 | left: 320px; |
|---|
| 16 | margin-right: 320px; |
|---|
| 17 | height: 512px; |
|---|
| 18 | min-height: 512px; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | #thumbPrev, #thumbNext {display:none;} |
|---|
| 22 | {/literal}</style> |
|---|
| 23 | {/html_head} |
|---|
| 24 | |
|---|
| 25 | <div id="mapPicture"> |
|---|
| [6245] | 26 | <a href="{$U_NO_MAP}" title="{'return to normal view mode'|@translate}" rel="nofollow"><img src="{$TN_SRC}" alt="thumb"/></a> |
|---|
| [3447] | 27 | <br/> |
|---|
| 28 | <a href="{$U_BLOWUP}" onclick="return blowupUrl(this.href);">{'More pictures near this location'|@translate}</a> |
|---|
| 29 | <br/> |
|---|
| 30 | {$COMMENT_IMG} |
|---|
| 31 | <br/> |
|---|
| 32 | </div> |
|---|
| 33 | |
|---|
| 34 | <div id="map"></div> |
|---|
| 35 | |
|---|
| 36 | <div style="clear:both"></div> |
|---|
| 37 | <script type="text/javascript">{literal} |
|---|
| 38 | //<![CDATA[ |
|---|
| 39 | function onLoad() |
|---|
| 40 | { |
|---|
| [6651] | 41 | var mapElement = document.getElementById("map"); |
|---|
| [6670] | 42 | var mapOpts = { |
|---|
| 43 | {/literal}{if isset($coordinates)} |
|---|
| 44 | center: new google.maps.LatLng( {$coordinates.LAT}, {$coordinates.LON} ), |
|---|
| 45 | zoom : 12, |
|---|
| 46 | {else} |
|---|
| 47 | center: new google.maps.LatLng(0,0), |
|---|
| 48 | zoom : 1, |
|---|
| 49 | {/if}{literal} |
|---|
| 50 | mapTypeId: google.maps.MapTypeId.ROADMAP |
|---|
| 51 | }; |
|---|
| 52 | |
|---|
| 53 | var map = new google.maps.Map( mapElement, mapOpts ); |
|---|
| [6651] | 54 | |
|---|
| [6670] | 55 | {/literal}{if isset($coordinates)} |
|---|
| 56 | var marker = new google.maps.Marker( {ldelim} |
|---|
| 57 | position: map.getCenter(), |
|---|
| 58 | map: map |
|---|
| [3447] | 59 | }); |
|---|
| [6670] | 60 | {/if}{literal} |
|---|
| [3447] | 61 | } |
|---|
| 62 | |
|---|
| 63 | function blowupUrl(theUrl) |
|---|
| 64 | { |
|---|
| [8029] | 65 | jQuery.fx.off = true; |
|---|
| 66 | jQuery.nyroModalManual( { |
|---|
| [6651] | 67 | url: theUrl, |
|---|
| [8029] | 68 | forceType: 'iframe', |
|---|
| 69 | width: 1920 |
|---|
| [6651] | 70 | }); |
|---|
| 71 | return false; |
|---|
| [3447] | 72 | } |
|---|
| 73 | |
|---|
| [8029] | 74 | jQuery(document).ready( onLoad ); |
|---|
| [3447] | 75 | //]]> |
|---|
| 76 | {/literal}</script> |
|---|