Changeset 38682
- Timestamp:
- 11/19/10 00:17:07 (2 years ago)
- Location:
- websites/twicli
- Files:
-
- 2 modified
-
plugins/geomap.js (modified) (2 diffs)
-
twicli.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
websites/twicli/plugins/geomap.js
r38681 r38682 41 41 var marker = new google.maps.Marker({position: latlng, map: map}); 42 42 43 if(mapAccCircleOption.radius = coordinates.pop()) { 43 if (coordinates[2]) { 44 mapAccCircleOption.radius = coordinates.pop(); 44 45 var accCircle = new google.maps.Circle(mapAccCircleOption); 45 46 accCircle.setCenter(latlng); … … 60 61 }; 61 62 62 function toggleGeoTag() {63 if (!geowatch) {64 geowatch = navigator.geolocation.watchPosition(function(g){65 geo = g;66 var maplink = typeof(display_map) == 'function';67 $("geotag-info").innerHTML = " : " + (maplink ? '<a href="javascript:display_map([geo.coords.latitude, geo.coords.longitude, geo.coords.accuracy], $(\'geotag-info\'))">' : '') + g.coords.latitude + ", " + g.coords.longitude + " (" + g.coords.accuracy + "m)" + (maplink ? '</a>' : '');68 setFstHeight(null, true);69 });70 $("geotag-img").src = "images/earth.png";71 $("geotag-st").innerHTML = "ON";72 $("geotag-info").innerHTML = " : -";73 } else {74 navigator.geolocation.clearWatch(geowatch);75 geo = geowatch = null;76 $("geotag-img").src = "images/earth_off.png";77 $("geotag-st").innerHTML = "OFF";78 $("geotag-info").innerHTML = "";79 setFstHeight(null, true);80 }81 }82 83 63 document.write('<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>'); -
websites/twicli/twicli.js
r38668 r38682 418 418 geo = g; 419 419 var maplink = typeof(display_map) == 'function'; 420 $("geotag-info").innerHTML = " : " + (maplink ? '<a href="javascript:display_map([geo.coords.latitude, geo.coords.longitude ], $(\'geotag-info\'))">' : '') + g.coords.latitude + ", " + g.coords.longitude + " (" + g.coords.accuracy + "m)" + (maplink ? '</a>' : '');420 $("geotag-info").innerHTML = " : " + (maplink ? '<a href="javascript:display_map([geo.coords.latitude, geo.coords.longitude, geo.coords.accuracy], $(\'geotag-info\'))">' : '') + g.coords.latitude + ", " + g.coords.longitude + " (" + g.coords.accuracy + "m)" + (maplink ? '</a>' : ''); 421 421 setFstHeight(null, true); 422 422 });
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)