Permalink
Browse files

Remove MapQuest

  • Loading branch information...
1 parent 7e51630 commit 042aea606dce09e8fe5ba98552e88df8bbc51379 @petrsloup petrsloup committed Jul 7, 2016
Showing with 390 additions and 397 deletions.
  1. +0 −1 javascript/src/map.html
  2. +3 −4 javascript/src/mappage.js
  3. +385 −390 js/map.js
  4. +2 −2 templates/map.tpl
@@ -17,7 +17,6 @@
<body id="mappage" data-role="page">
<div id="map"></div>
<select id="mapType">
- <option value="mqosm">OSM MapQuest</option>
<option value="osm">OSM</option>
<option value="streets" data-tilejson="http://api.tiles.mapbox.com/v3/klokantech.icij6jpi.jsonp">MapBox Streets</option>
<option value="satellite" data-tilejson="http://api.tiles.mapbox.com/v3/klokantech.iciigjd2.jsonp">MapBox Satellite</option>
@@ -19,7 +19,6 @@ goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.extent');
goog.require('ol.layer.Tile');
-goog.require('ol.source.MapQuest');
goog.require('ol.source.OSM');
goog.require('ol.source.TileJSON');
@@ -148,7 +147,7 @@ epsg.io.MapPage = function() {
goog.events.listen(this.reprojectMapElement_, goog.events.EventType.CHANGE,
function(e) {
if (this.gmapWrap_) {
- this.mapTypeElement_.value = 'mqosm';
+ this.mapTypeElement_.value = 'osm';
this.updateMapType_();
}
this.updateMapView_();
@@ -393,8 +392,8 @@ epsg.io.MapPage.prototype.updateMapType_ = function() {
if (tilejson) {
src = new ol.source.TileJSON({url: tilejson, useXhr: true});
} else {
- if (mapType == 'mqosm') {
- src = new ol.source.MapQuest({layer: 'osm'});
+ if (mapType == 'osm') {
+ src = new ol.source.OSM();
(function() {src.opaque_ = false;})();
}
}
Oops, something went wrong.

0 comments on commit 042aea6

Please sign in to comment.