Permalink
Browse files

ENHANCEMENT: add OpenStreetMap support

  • Loading branch information...
1 parent e62be35 commit bd1b4f1826d18f120c17ff25b95cbd36059bc39c Rainer Spittel committed Aug 4, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 templates/JS_templates/JS_Layer_OpenStreetMap.ss
@@ -9,7 +9,8 @@ layer = new OpenLayers.Layer.TMS(
{
type: 'png', getURL: osm_getTileURL,
displayOutsideMaxExtent: true,
- attribution: '<a href="http://www.openstreetmap.org/">OpenStreetMap</a>'
+ attribution: '<a href="http://www.openstreetmap.org/">OpenStreetMap</a>',
+ wrapDateLine: true
}
);
@@ -32,7 +33,7 @@ function osm_getTileURL(bounds) {
var limit = Math.pow(2, z);
if (y < 0 || y >= limit) {
- return OpenLayers.Util.getImagesLocation() + "404.png";
+ return OpenLayers.Util.getImagesLocation() + "404_tile.png";
} else {
x = ((x % limit) + limit) % limit;
return this.url + z + "/" + x + "/" + y + "." + this.type;

0 comments on commit bd1b4f1

Please sign in to comment.