Merge branch 'master' into openstreetbugs
14
public/clientaccesspolicy.xml
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<access-policy>
|
||||
<cross-domain-access>
|
||||
<policy>
|
||||
<allow-from http-request-headers="*" http-methods="*">
|
||||
<domain uri="*"/>
|
||||
</allow-from>
|
||||
<grant-to>
|
||||
<resource path="/api" include-subpaths="true"/>
|
||||
<resource path="/oauth" include-subpaths="true"/>
|
||||
</grant-to>
|
||||
</policy>
|
||||
</cross-domain-access>
|
||||
</access-policy>
|
BIN
public/images/key/osmarender/admin.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
public/images/key/osmarender/allotments.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/bridleway.png
Normal file
After Width: | Height: | Size: 151 B |
BIN
public/images/key/osmarender/brownfield.png
Normal file
After Width: | Height: | Size: 111 B |
BIN
public/images/key/osmarender/building.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/byway.png
Normal file
After Width: | Height: | Size: 209 B |
BIN
public/images/key/osmarender/cemetery.png
Normal file
After Width: | Height: | Size: 148 B |
BIN
public/images/key/osmarender/centre.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/commercial.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/common.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/cycleway.png
Normal file
After Width: | Height: | Size: 130 B |
BIN
public/images/key/osmarender/farm.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/footway.png
Normal file
After Width: | Height: | Size: 131 B |
BIN
public/images/key/osmarender/forest.png
Normal file
After Width: | Height: | Size: 102 B |
BIN
public/images/key/osmarender/heathland.png
Normal file
After Width: | Height: | Size: 113 B |
BIN
public/images/key/osmarender/industrial.png
Normal file
After Width: | Height: | Size: 111 B |
BIN
public/images/key/osmarender/lake.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
public/images/key/osmarender/mapkey.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
public/images/key/osmarender/military.png
Normal file
After Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 153 B |
BIN
public/images/key/osmarender/park.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/pitch.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
public/images/key/osmarender/primary.png
Normal file
After Width: | Height: | Size: 116 B |
BIN
public/images/key/osmarender/rail.png
Normal file
After Width: | Height: | Size: 142 B |
BIN
public/images/key/osmarender/reserve.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
public/images/key/osmarender/resident.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
public/images/key/osmarender/retail.png
Normal file
After Width: | Height: | Size: 111 B |
BIN
public/images/key/osmarender/school.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
public/images/key/osmarender/secondary.png
Normal file
After Width: | Height: | Size: 116 B |
BIN
public/images/key/osmarender/station.png
Normal file
After Width: | Height: | Size: 128 B |
BIN
public/images/key/osmarender/subway.png
Normal file
After Width: | Height: | Size: 128 B |
BIN
public/images/key/osmarender/summit.png
Normal file
After Width: | Height: | Size: 139 B |
BIN
public/images/key/osmarender/tourist.png
Normal file
After Width: | Height: | Size: 105 B |
BIN
public/images/key/osmarender/track.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
public/images/key/osmarender/tram.png
Normal file
After Width: | Height: | Size: 151 B |
BIN
public/images/key/osmarender/trunk.png
Normal file
After Width: | Height: | Size: 116 B |
BIN
public/images/key/osmarender/unsurfaced.png
Normal file
After Width: | Height: | Size: 186 B |
BIN
public/images/key/osmarender/wood.png
Normal file
After Width: | Height: | Size: 102 B |
BIN
public/images/sotm.png
Normal file
After Width: | Height: | Size: 30 KiB |
|
@ -23,7 +23,8 @@ function createMap(divName, options) {
|
|||
new OpenLayers.Control.LayerSwitcher(),
|
||||
new OpenLayers.Control.Navigation(),
|
||||
new OpenLayers.Control.PanZoom(),
|
||||
new OpenLayers.Control.PanZoomBar()
|
||||
new OpenLayers.Control.PanZoomBar(),
|
||||
new OpenLayers.Control.ScaleLine({geodesic: true})
|
||||
],
|
||||
units: "m",
|
||||
maxResolution: 156543.0339,
|
||||
|
|
74
public/javascripts/menu.js
Normal file
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
* Open a menu.
|
||||
*/
|
||||
function openMenu(anchor, menu) {
|
||||
menu.style.display = "block";
|
||||
|
||||
menu.clonePosition(anchor, {
|
||||
setLeft: true, setTop: true, setWidth: false, setHeight: false,
|
||||
offsetLeft: 0, offsetTop: anchor.getHeight()
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* Close a menu.
|
||||
*/
|
||||
function closeMenu(menu) {
|
||||
clearTimeout(menu.timer);
|
||||
menu.style.display = "none";
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback called when the mouse enters a menu anchor.
|
||||
*/
|
||||
function enterMenuAnchor(event, anchor, menu, delay) {
|
||||
if (!anchor.hasClassName("disabled")) {
|
||||
clearTimeout(menu.timer);
|
||||
|
||||
if (delay > 0) {
|
||||
menu.timer = setTimeout(function () { openMenu(anchor, menu) }, delay);
|
||||
} else {
|
||||
openMenu(event, menu);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback called when the mouse leaves a menu anchor.
|
||||
*/
|
||||
function leaveMenuAnchor(event, anchor, menu) {
|
||||
var to = event.relatedTarget;
|
||||
|
||||
if (to != menu && !to.descendantOf(menu)) {
|
||||
menu.style.display = "none";
|
||||
}
|
||||
|
||||
clearTimeout(menu.timer);
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback called when the mouse leaves a menu.
|
||||
*/
|
||||
function leaveMenu(event, anchor, menu) {
|
||||
var to = event.relatedTarget;
|
||||
|
||||
if (to != anchor && !to.descendantOf(menu)) {
|
||||
menu.style.display = "none";
|
||||
}
|
||||
|
||||
clearTimeout(menu.timer);
|
||||
}
|
||||
|
||||
/*
|
||||
* Setup a menu, triggered by hovering over an anchor for a given time.
|
||||
*/
|
||||
function createMenu(anchorid, menuid, delay) {
|
||||
var anchor = $(anchorid);
|
||||
var menu = $(menuid);
|
||||
|
||||
anchor.observe("mouseup", function (event) { closeMenu(menu) });
|
||||
anchor.observe("mouseover", function (event) { enterMenuAnchor(anchor, anchor, menu, delay) });
|
||||
anchor.observe("mouseout", function (event) { leaveMenuAnchor(event, anchor, menu) });
|
||||
menu.observe("mouseup", function (event) { closeMenu(menu) });
|
||||
menu.observe("mouseout", function (event) { leaveMenu(event, anchor, menu) });
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/*
|
||||
* Called as the user scrolls/zooms around to aniplate hrefs of the
|
||||
* view tab and various other links
|
||||
|
@ -69,15 +68,54 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj
|
|||
}
|
||||
}
|
||||
|
||||
node = $("potlatchanchor");
|
||||
if (node) {
|
||||
var args = new Object();
|
||||
args.editor = "potlatch";
|
||||
args.lat = lat;
|
||||
args.lon = lon;
|
||||
args.zoom = zoom;
|
||||
if (objtype && objid) {
|
||||
args[objtype] = objid;
|
||||
}
|
||||
node.href = setArgs("/edit", args);
|
||||
}
|
||||
|
||||
node = $("potlatch2anchor");
|
||||
if (node) {
|
||||
var args = new Object();
|
||||
args.editor = "potlatch2";
|
||||
args.lat = lat;
|
||||
args.lon = lon;
|
||||
args.zoom = zoom;
|
||||
if (objtype && objid) {
|
||||
args[objtype] = objid;
|
||||
}
|
||||
node.href = setArgs("/edit", args);
|
||||
}
|
||||
|
||||
node = $("josmanchor");
|
||||
if (node) {
|
||||
var args = new Object();
|
||||
args.editor = "josm";
|
||||
args.lat = lat;
|
||||
args.lon = lon;
|
||||
args.zoom = zoom;
|
||||
if (objtype && objid) {
|
||||
args[objtype] = objid;
|
||||
}
|
||||
node.href = setArgs("/edit", args);
|
||||
}
|
||||
|
||||
node = $("historyanchor");
|
||||
if (node) {
|
||||
if (zoom >= 11) {
|
||||
var args = new Object();
|
||||
//set bbox param from 'extents' object
|
||||
if (typeof minlon == "number" &&
|
||||
typeof minlat == "number" &&
|
||||
typeof maxlon == "number" &&
|
||||
typeof maxlat == "number") {
|
||||
typeof minlat == "number" &&
|
||||
typeof maxlon == "number" &&
|
||||
typeof maxlat == "number") {
|
||||
|
||||
minlon = Math.round(minlon * decimals) / decimals;
|
||||
minlat = Math.round(minlat * decimals) / decimals;
|
||||
|
@ -216,33 +254,45 @@ function i18n(string, keys) {
|
|||
return string;
|
||||
}
|
||||
|
||||
/*
|
||||
* Called to interlace the bits in x and y, making a Morton code.
|
||||
*/
|
||||
function interlace(x, y) {
|
||||
x = (x | (x << 8)) & 0x00ff00ff;
|
||||
x = (x | (x << 4)) & 0x0f0f0f0f;
|
||||
x = (x | (x << 2)) & 0x33333333;
|
||||
x = (x | (x << 1)) & 0x55555555;
|
||||
|
||||
y = (y | (y << 8)) & 0x00ff00ff;
|
||||
y = (y | (y << 4)) & 0x0f0f0f0f;
|
||||
y = (y | (y << 2)) & 0x33333333;
|
||||
y = (y | (y << 1)) & 0x55555555;
|
||||
|
||||
return (x << 1) | y;
|
||||
}
|
||||
|
||||
/*
|
||||
* Called to create a short code for the short link.
|
||||
*/
|
||||
function makeShortCode(lat, lon, zoom) {
|
||||
char_array = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_@";
|
||||
var x = Math.round((lon + 180.0) * ((1 << 30) / 90.0));
|
||||
var y = Math.round((lat + 90.0) * ((1 << 30) / 45.0));
|
||||
// hack around the fact that JS apparently only allows 53-bit integers?!?
|
||||
// note that, although this reduces the accuracy of the process, it's fine for
|
||||
// z18 so we don't need to care for now.
|
||||
var c1 = 0, c2 = 0;
|
||||
for (var i = 31; i > 16; --i) {
|
||||
c1 = (c1 << 1) | ((x >> i) & 1);
|
||||
c1 = (c1 << 1) | ((y >> i) & 1);
|
||||
}
|
||||
for (var i = 16; i > 1; --i) {
|
||||
c2 = (c2 << 1) | ((x >> i) & 1);
|
||||
c2 = (c2 << 1) | ((y >> i) & 1);
|
||||
}
|
||||
// JavaScript only has to keep 32 bits of bitwise operators, so this has to be
|
||||
// done in two parts. each of the parts c1/c2 has 30 bits of the total in it
|
||||
// and drops the last 4 bits of the full 64 bit Morton code.
|
||||
var str = "";
|
||||
var c1 = interlace(x >>> 17, y >>> 17), c2 = interlace((x >>> 2) & 0x7fff, (y >>> 2) & 0x7fff);
|
||||
for (var i = 0; i < Math.ceil((zoom + 8) / 3.0) && i < 5; ++i) {
|
||||
digit = (c1 >> (24 - 6 * i)) & 0x3f;
|
||||
str += char_array.charAt(digit);
|
||||
digit = (c1 >> (24 - 6 * i)) & 0x3f;
|
||||
str += char_array.charAt(digit);
|
||||
}
|
||||
for (var i = 5; i < Math.ceil((zoom + 8) / 3.0); ++i) {
|
||||
digit = (c2 >> (24 - 6 * (i - 5))) & 0x3f;
|
||||
str += char_array.charAt(digit);
|
||||
digit = (c2 >> (24 - 6 * (i - 5))) & 0x3f;
|
||||
str += char_array.charAt(digit);
|
||||
}
|
||||
for (var i = 0; i < ((zoom + 8) % 3); ++i) {
|
||||
str += "-";
|
||||
str += "-";
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
|
|
@ -729,7 +729,7 @@ var failure;if(config.failure){failure=(config.scope)?OpenLayers.Function.bind(c
|
|||
complete(request);if(!request.status||(request.status>=200&&request.status<300)){this.events.triggerEvent("success",options);if(success){success(request);}}
|
||||
if(request.status&&(request.status<200||request.status>=300)){this.events.triggerEvent("failure",options);if(failure){failure(request);}}},GET:function(config){config=OpenLayers.Util.extend(config,{method:"GET"});return OpenLayers.Request.issue(config);},POST:function(config){config=OpenLayers.Util.extend(config,{method:"POST"});config.headers=config.headers?config.headers:{};if(!("CONTENT-TYPE"in OpenLayers.Util.upperCaseObject(config.headers))){config.headers["Content-Type"]="application/xml";}
|
||||
return OpenLayers.Request.issue(config);},PUT:function(config){config=OpenLayers.Util.extend(config,{method:"PUT"});config.headers=config.headers?config.headers:{};if(!("CONTENT-TYPE"in OpenLayers.Util.upperCaseObject(config.headers))){config.headers["Content-Type"]="application/xml";}
|
||||
return OpenLayers.Request.issue(config);},DELETE:function(config){config=OpenLayers.Util.extend(config,{method:"DELETE"});return OpenLayers.Request.issue(config);},HEAD:function(config){config=OpenLayers.Util.extend(config,{method:"HEAD"});return OpenLayers.Request.issue(config);},OPTIONS:function(config){config=OpenLayers.Util.extend(config,{method:"OPTIONS"});return OpenLayers.Request.issue(config);}};OpenLayers.Tile.Image=OpenLayers.Class(OpenLayers.Tile,{url:null,imgDiv:null,frame:null,layerAlphaHack:null,isBackBuffer:false,lastRatio:1,isFirstDraw:true,backBufferTile:null,initialize:function(layer,position,bounds,url,size){OpenLayers.Tile.prototype.initialize.apply(this,arguments);this.url=url;this.frame=document.createElement('div');this.frame.style.overflow='hidden';this.frame.style.position='absolute';this.layerAlphaHack=this.layer.alpha&&OpenLayers.Util.alphaHack();},destroy:function(){if(this.imgDiv!=null){if(this.layerAlphaHack){OpenLayers.Event.stopObservingElement(this.imgDiv.childNodes[0]);}
|
||||
return OpenLayers.Request.issue(config);},DELETE:function(config){config=OpenLayers.Util.extend(config,{method:"DELETE"});return OpenLayers.Request.issue(config);},HEAD:function(config){config=OpenLayers.Util.extend(config,{method:"HEAD"});return OpenLayers.Request.issue(config);},OPTIONS:function(config){config=OpenLayers.Util.extend(config,{method:"OPTIONS"});return OpenLayers.Request.issue(config);}};OpenLayers.Tile.Image=OpenLayers.Class(OpenLayers.Tile,{url:null,imgDiv:null,frame:null,layerAlphaHack:null,isBackBuffer:false,isFirstDraw:true,backBufferTile:null,initialize:function(layer,position,bounds,url,size){OpenLayers.Tile.prototype.initialize.apply(this,arguments);this.url=url;this.frame=document.createElement('div');this.frame.style.overflow='hidden';this.frame.style.position='absolute';this.layerAlphaHack=this.layer.alpha&&OpenLayers.Util.alphaHack();},destroy:function(){if(this.imgDiv!=null){if(this.layerAlphaHack){OpenLayers.Event.stopObservingElement(this.imgDiv.childNodes[0]);}
|
||||
OpenLayers.Event.stopObservingElement(this.imgDiv);if(this.imgDiv.parentNode==this.frame){this.frame.removeChild(this.imgDiv);this.imgDiv.map=null;}
|
||||
this.imgDiv.urls=null;this.imgDiv.src=OpenLayers.Util.getImagesLocation()+"blank.gif";}
|
||||
this.imgDiv=null;if((this.frame!=null)&&(this.frame.parentNode==this.layer.div)){this.layer.div.removeChild(this.frame);}
|
||||
|
@ -750,9 +750,8 @@ this.imgDiv.className='olTileImage';this.frame.style.zIndex=this.isBackBuffer?0:
|
|||
this.imgDiv.map=this.layer.map;var onload=function(){if(this.isLoading){this.isLoading=false;this.events.triggerEvent("loadend");}};if(this.layerAlphaHack){OpenLayers.Event.observe(this.imgDiv.childNodes[0],'load',OpenLayers.Function.bind(onload,this));}else{OpenLayers.Event.observe(this.imgDiv,'load',OpenLayers.Function.bind(onload,this));}
|
||||
var onerror=function(){if(this.imgDiv._attempts>OpenLayers.IMAGE_RELOAD_ATTEMPTS){onload.call(this);}};OpenLayers.Event.observe(this.imgDiv,"error",OpenLayers.Function.bind(onerror,this));},checkImgURL:function(){if(this.layer){var loaded=this.layerAlphaHack?this.imgDiv.firstChild.src:this.imgDiv.src;if(!OpenLayers.Util.isEquivalentUrl(loaded,this.url)){this.hide();}}},startTransition:function(){if(!this.backBufferTile||!this.backBufferTile.imgDiv){return;}
|
||||
var ratio=1;if(this.backBufferTile.resolution){ratio=this.backBufferTile.resolution/this.layer.getResolution();}
|
||||
if(ratio!=this.lastRatio){if(this.layer.transitionEffect=='resize'){var upperLeft=new OpenLayers.LonLat(this.backBufferTile.bounds.left,this.backBufferTile.bounds.top);var size=new OpenLayers.Size(this.backBufferTile.size.w*ratio,this.backBufferTile.size.h*ratio);var px=this.layer.map.getLayerPxFromLonLat(upperLeft);OpenLayers.Util.modifyDOMElement(this.backBufferTile.frame,null,px,size);var imageSize=this.backBufferTile.imageSize;imageSize=new OpenLayers.Size(imageSize.w*ratio,imageSize.h*ratio);var imageOffset=this.backBufferTile.imageOffset;if(imageOffset){imageOffset=new OpenLayers.Pixel(imageOffset.x*ratio,imageOffset.y*ratio);}
|
||||
OpenLayers.Util.modifyDOMElement(this.backBufferTile.imgDiv,null,imageOffset,imageSize);this.backBufferTile.show();}}else{if(this.layer.singleTile){this.backBufferTile.show();}else{this.backBufferTile.hide();}}
|
||||
this.lastRatio=ratio;},show:function(){this.frame.style.display='';if(OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,this.layer.transitionEffect)!=-1){if(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1){this.frame.scrollLeft=this.frame.scrollLeft;}}},hide:function(){this.frame.style.display='none';},CLASS_NAME:"OpenLayers.Tile.Image"});OpenLayers.Tile.Image.useBlankTile=(OpenLayers.Util.getBrowserName()=="safari"||OpenLayers.Util.getBrowserName()=="opera");OpenLayers.Feature=OpenLayers.Class({layer:null,id:null,lonlat:null,data:null,marker:null,popupClass:OpenLayers.Popup.AnchoredBubble,popup:null,initialize:function(layer,lonlat,data){this.layer=layer;this.lonlat=lonlat;this.data=(data!=null)?data:{};this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_");},destroy:function(){if((this.layer!=null)&&(this.layer.map!=null)){if(this.popup!=null){this.layer.map.removePopup(this.popup);}}
|
||||
if(ratio!=1){if(this.layer.transitionEffect=='resize'){var upperLeft=new OpenLayers.LonLat(this.backBufferTile.bounds.left,this.backBufferTile.bounds.top);var size=new OpenLayers.Size(this.backBufferTile.size.w*ratio,this.backBufferTile.size.h*ratio);var px=this.layer.map.getLayerPxFromLonLat(upperLeft);OpenLayers.Util.modifyDOMElement(this.backBufferTile.frame,null,px,size);var imageSize=this.backBufferTile.imageSize;imageSize=new OpenLayers.Size(imageSize.w*ratio,imageSize.h*ratio);var imageOffset=this.backBufferTile.imageOffset;if(imageOffset){imageOffset=new OpenLayers.Pixel(imageOffset.x*ratio,imageOffset.y*ratio);}
|
||||
OpenLayers.Util.modifyDOMElement(this.backBufferTile.imgDiv,null,imageOffset,imageSize);this.backBufferTile.show();}}else{if(this.layer.singleTile){this.backBufferTile.show();}else{this.backBufferTile.hide();}}},show:function(){this.frame.style.display='';if(OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,this.layer.transitionEffect)!=-1){if(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1){this.frame.scrollLeft=this.frame.scrollLeft;}}},hide:function(){this.frame.style.display='none';},CLASS_NAME:"OpenLayers.Tile.Image"});OpenLayers.Tile.Image.useBlankTile=(OpenLayers.Util.getBrowserName()=="safari"||OpenLayers.Util.getBrowserName()=="opera");OpenLayers.Feature=OpenLayers.Class({layer:null,id:null,lonlat:null,data:null,marker:null,popupClass:OpenLayers.Popup.AnchoredBubble,popup:null,initialize:function(layer,lonlat,data){this.layer=layer;this.lonlat=lonlat;this.data=(data!=null)?data:{};this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_");},destroy:function(){if((this.layer!=null)&&(this.layer.map!=null)){if(this.popup!=null){this.layer.map.removePopup(this.popup);}}
|
||||
if(this.layer!=null&&this.marker!=null){this.layer.removeMarker(this.marker);}
|
||||
this.layer=null;this.id=null;this.lonlat=null;this.data=null;if(this.marker!=null){this.destroyMarker(this.marker);this.marker=null;}
|
||||
if(this.popup!=null){this.destroyPopup(this.popup);this.popup=null;}},onScreen:function(){var onScreen=false;if((this.layer!=null)&&(this.layer.map!=null)){var screenBounds=this.layer.map.getExtent();onScreen=screenBounds.containsLonLat(this.lonlat);}
|
||||
|
|
|
@ -48,7 +48,11 @@ OpenLayers.Layer.OSM.Mapnik = OpenLayers.Class(OpenLayers.Layer.OSM, {
|
|||
"http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
|
||||
"http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
|
||||
];
|
||||
options = OpenLayers.Util.extend({ numZoomLevels: 19, buffer: 0 }, options);
|
||||
options = OpenLayers.Util.extend({
|
||||
numZoomLevels: 19,
|
||||
buffer: 0,
|
||||
transitionEffect: "resize"
|
||||
}, options);
|
||||
var newArguments = [name, url, options];
|
||||
OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
|
||||
},
|
||||
|
@ -76,7 +80,11 @@ OpenLayers.Layer.OSM.Osmarender = OpenLayers.Class(OpenLayers.Layer.OSM, {
|
|||
"http://b.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png",
|
||||
"http://c.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png"
|
||||
];
|
||||
options = OpenLayers.Util.extend({ numZoomLevels: 18, buffer: 0 }, options);
|
||||
options = OpenLayers.Util.extend({
|
||||
numZoomLevels: 18,
|
||||
buffer: 0,
|
||||
transitionEffect: "resize"
|
||||
}, options);
|
||||
var newArguments = [name, url, options];
|
||||
OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
|
||||
},
|
||||
|
@ -104,7 +112,11 @@ OpenLayers.Layer.OSM.CycleMap = OpenLayers.Class(OpenLayers.Layer.OSM, {
|
|||
"http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",
|
||||
"http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png"
|
||||
];
|
||||
options = OpenLayers.Util.extend({ numZoomLevels: 19, buffer: 0 }, options);
|
||||
options = OpenLayers.Util.extend({
|
||||
numZoomLevels: 19,
|
||||
buffer: 0,
|
||||
transitionEffect: "resize"
|
||||
}, options);
|
||||
var newArguments = [name, url, options];
|
||||
OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
|
||||
},
|
||||
|
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.1 KiB |
BIN
public/potlatch2/FontLibrary.swf
Normal file
BIN
public/potlatch2/bing_maps.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
public/potlatch2/features/aeroway__aerodrome.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
public/potlatch2/features/aeroway__apron.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/potlatch2/features/aeroway__helipad.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
public/potlatch2/features/aeroway__runway.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/potlatch2/features/aeroway__taxiway.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/potlatch2/features/aeroway__terminal.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/potlatch2/features/amenity__bus_station.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
public/potlatch2/features/amenity__parking.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/potlatch2/features/barrier_generic.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
public/potlatch2/features/bike-shop.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
public/potlatch2/features/bugs/fixed.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
public/potlatch2/features/bugs/invalid.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/potlatch2/features/bugs/open.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
public/potlatch2/features/highway__living_street.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
public/potlatch2/features/highway__motorway.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
public/potlatch2/features/highway__motorway_link.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
public/potlatch2/features/highway__primary.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/potlatch2/features/highway__primary_link.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/potlatch2/features/highway__residential.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
public/potlatch2/features/highway__secondary.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/potlatch2/features/highway__secondary_link.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/potlatch2/features/highway__service.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/potlatch2/features/highway__tertiary.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/potlatch2/features/highway__tertiary_link.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
public/potlatch2/features/highway__track.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
public/potlatch2/features/highway__trunk.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
public/potlatch2/features/highway__trunk_link.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
public/potlatch2/features/highway__unclassified.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/potlatch2/features/highway__unknown.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
public/potlatch2/features/manmade_lighthouse.png
Normal file
After Width: | Height: | Size: 743 B |
BIN
public/potlatch2/features/manmade_silo.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
public/potlatch2/features/manmade_tower.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
public/potlatch2/features/oneway__-1.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
public/potlatch2/features/oneway__no.png
Normal file
After Width: | Height: | Size: 320 B |
BIN
public/potlatch2/features/oneway__yes.png
Normal file
After Width: | Height: | Size: 308 B |
BIN
public/potlatch2/features/paths__bike.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/potlatch2/features/paths__bridleway.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/potlatch2/features/paths__footway.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
public/potlatch2/features/paths__pedestrian.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
public/potlatch2/features/paths__steps.png
Normal file
After Width: | Height: | Size: 964 B |
BIN
public/potlatch2/features/paths__unofficial.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
public/potlatch2/features/pois/accommodation_alpinehut.n.24.png
Normal file
After Width: | Height: | Size: 993 B |
After Width: | Height: | Size: 866 B |
BIN
public/potlatch2/features/pois/accommodation_camping.n.24.png
Normal file
After Width: | Height: | Size: 700 B |
After Width: | Height: | Size: 643 B |
BIN
public/potlatch2/features/pois/accommodation_chalet.n.24.png
Normal file
After Width: | Height: | Size: 731 B |
BIN
public/potlatch2/features/pois/accommodation_hotel.n.24.png
Normal file
After Width: | Height: | Size: 810 B |
BIN
public/potlatch2/features/pois/accommodation_motel.n.24.png
Normal file
After Width: | Height: | Size: 763 B |
BIN
public/potlatch2/features/pois/accommodation_shelter2.n.24.png
Normal file
After Width: | Height: | Size: 1 KiB |
After Width: | Height: | Size: 784 B |
BIN
public/potlatch2/features/pois/amenity_bench.n.24.png
Normal file
After Width: | Height: | Size: 361 B |
BIN
public/potlatch2/features/pois/amenity_firestation2.n.24.png
Normal file
After Width: | Height: | Size: 1.7 KiB |