aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/static/js/geolocation-map.js
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-11-26 11:53:59 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-11-26 11:53:59 -0600
commit11e887f2743b9a362708635a502a8867d757e8c6 (patch)
treef4d615be860da73ed115da9c0c3c2848c15aed0e /mediagoblin/static/js/geolocation-map.js
parent9abd664bf2b1de34fc6de0f3b323727e47470e52 (diff)
parentee97ac6c2f8629aee958391f1f6337b1983529d0 (diff)
downloadmediagoblin-11e887f2743b9a362708635a502a8867d757e8c6.tar.lz
mediagoblin-11e887f2743b9a362708635a502a8867d757e8c6.tar.xz
mediagoblin-11e887f2743b9a362708635a502a8867d757e8c6.zip
Merge remote-tracking branch 'remotes/spaetz/410_OSM_attrib_v2'
Diffstat (limited to 'mediagoblin/static/js/geolocation-map.js')
-rw-r--r--mediagoblin/static/js/geolocation-map.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/mediagoblin/static/js/geolocation-map.js b/mediagoblin/static/js/geolocation-map.js
index de49a37d..26d94c5d 100644
--- a/mediagoblin/static/js/geolocation-map.js
+++ b/mediagoblin/static/js/geolocation-map.js
@@ -31,19 +31,15 @@ $(document).ready(function () {
var map = new L.Map('tile-map');
var mqtileUrl = 'http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpg';
- var mqtileAttrib = 'Map data &copy; '
- + String(new Date().getFullYear())
- + ' OpenStreetMap contributors, CC-BY-SA.'
- + ' Imaging &copy; '
- + String(new Date().getFullYear())
- + ' <a target="_blank" href="http://mapquest.com">MapQuest</a>.';
+ var mqtileAttrib = '<a id="osm_license_link">see map license</a>';
var mqtile = new L.TileLayer(
mqtileUrl,
{maxZoom: 18,
attribution: mqtileAttrib,
subdomains: '1234'});
- var location = new L.LatLng(latitude, longitude);
+ map.attributionControl.setPrefix('');
+ var location = new L.LatLng(latitude, longitude);
map.setView(location, 13).addLayer(mqtile);
var marker = new L.Marker(location);