Skip to content

Commit

Permalink
#220 - switch to OSM direct tiles by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanttb committed Jul 15, 2016
1 parent e649714 commit fba40a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/jquery.geo.geomap.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"class": "osm",
type: "tiled",
src: function (view) {
return "//otile" + ((view.index % 4) + 1) + ((location.protocol === 'https:') ? "-s" : "") + ".mqcdn.com/tiles/1.0.0/osm/" + view.zoom + "/" + view.tile.column + "/" + view.tile.row + ".png";
return "//" + String.fromCharCode(97 + (view.index % 3)) + ".tile.openstreetmap.org/" + view.zoom + "/" + view.tile.column + "/" + view.tile.row + ".png";
},
attr: 'Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="//developer.mapquest.com/content/osm/mq_logo.png" />'
attr: '&copy; <a href="http://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors'
}
],
tilingScheme: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "jquery.geo",
"title": "jQuery Geo",
"description": "An interactive mapping widget and geo-spatial API built on open source and open data (NOT a wrapper of other APIs, such as Google Maps)",
"version": "1.0.0-rc1.1",
"main": "dist/jquery.geo-1.0.0-rc1.1.js",
"version": "1.0.0-rc1.2",
"main": "dist/jquery.geo-1.0.0-rc1.2.js",
"registry": "npm",
"format": "global",
"homepage": "http://jquerygeo.com",
Expand Down

0 comments on commit fba40a9

Please sign in to comment.