|
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<title>colored_ca_range_size_rarity.tif</title> |
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> |
|
<meta http-equiv='imagetoolbar' content='no'/> |
|
<style type="text/css"> v\:* {behavior:url(#default#VML);} |
|
html, body { overflow: hidden; padding: 0; height: 100%; width: 100%; font-family: 'Lucida Grande',Geneva,Arial,Verdana,sans-serif; } |
|
body { margin: 10px; background: #fff; } |
|
h1 { margin: 0; padding: 6px; border:0; font-size: 20pt; } |
|
#header { height: 43px; padding: 0; background-color: #eee; border: 1px solid #888; } |
|
#subheader { height: 12px; text-align: right; font-size: 10px; color: #555;} |
|
#map { height: 95%; border: 1px solid #888; } |
|
</style> |
|
|
|
<script src='https://maps.googleapis.com/maps/api/js'></script> |
|
<script> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var mapBounds = new google.maps.LatLngBounds( |
|
new google.maps.LatLng(31.423689826371422, -125.08104466955334), |
|
new google.maps.LatLng(43.470185949106565, -113.80939078827362)); |
|
var mapMinZoom = 1; |
|
var mapMaxZoom = 10; |
|
|
|
|
|
var initialOpacity = 0.75 * 100; |
|
var map; |
|
|
|
|
|
|
|
|
|
|
|
function getWindowHeight() { |
|
if (self.innerHeight) return self.innerHeight; |
|
if (document.documentElement && document.documentElement.clientHeight) |
|
return document.documentElement.clientHeight; |
|
if (document.body) return document.body.clientHeight; |
|
return 0; |
|
} |
|
|
|
function getWindowWidth() { |
|
if (self.innerWidth) return self.innerWidth; |
|
if (document.documentElement && document.documentElement.clientWidth) |
|
return document.documentElement.clientWidth; |
|
if (document.body) return document.body.clientWidth; |
|
return 0; |
|
} |
|
|
|
function resize() { |
|
var map = document.getElementById("map"); |
|
var header = document.getElementById("header"); |
|
var subheader = document.getElementById("subheader"); |
|
map.style.height = (getWindowHeight()-80) + "px"; |
|
map.style.width = (getWindowWidth()-20) + "px"; |
|
header.style.width = (getWindowWidth()-20) + "px"; |
|
subheader.style.width = (getWindowWidth()-20) + "px"; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getZoomByBounds( map, bounds ){ |
|
var MAX_ZOOM = 21 ; |
|
var MIN_ZOOM = 0 ; |
|
|
|
var ne= map.getProjection().fromLatLngToPoint( bounds.getNorthEast() ); |
|
var sw= map.getProjection().fromLatLngToPoint( bounds.getSouthWest() ); |
|
|
|
var worldCoordWidth = Math.abs(ne.x-sw.x); |
|
var worldCoordHeight = Math.abs(ne.y-sw.y); |
|
|
|
var FIT_PAD = 40; |
|
for( var zoom = MAX_ZOOM; zoom >= MIN_ZOOM; --zoom ){ |
|
if( worldCoordWidth*(1<<zoom)+2*FIT_PAD < map.getDiv().offsetWidth && |
|
worldCoordHeight*(1<<zoom)+2*FIT_PAD < map.getDiv().offsetHeight ) |
|
{ |
|
if( zoom > mapMaxZoom ) |
|
zoom = mapMaxZoom; |
|
return zoom; |
|
} |
|
} |
|
return 0; |
|
} |
|
|
|
function fromMercatorPixelToLatLng(pixel, zoom) |
|
{ |
|
var CST = 6378137 * Math.PI; |
|
var res = 2 * CST / 256 / Math.pow(2, zoom); |
|
var X = -CST + pixel.x * res; |
|
var Y = CST - pixel.y * res; |
|
var lon = X / CST * 180; |
|
var lat = Math.atan(Math.sinh(Y / CST * Math.PI)) / Math.PI * 180; |
|
return new google.maps.LatLng(lat, lon); |
|
} |
|
|
|
|
|
var OPACITY_MAX_PIXELS = 57; |
|
|
|
function createOpacityControl(map, opacity) { |
|
var sliderImageUrl = "https://gdal.org/resources/gdal2tiles/opacity-slider.png"; |
|
|
|
|
|
var opacityDiv = document.createElement('DIV'); |
|
var opacityDivMargin = 5; |
|
opacityDiv.setAttribute("style", "margin:" + opacityDivMargin + "px;overflow-x:hidden;overflow-y:hidden;background:url(" + sliderImageUrl + ") no-repeat;width:71px;height:21px;cursor:pointer;"); |
|
|
|
|
|
var opacityKnobDiv = document.createElement('DIV'); |
|
opacityKnobDiv.setAttribute("style", "padding:0;margin:0;overflow-x:hidden;overflow-y:hidden;background:url(" + sliderImageUrl + ") no-repeat -71px 0;width:14px;height:21px;"); |
|
opacityDiv.appendChild(opacityKnobDiv); |
|
|
|
var opacityCtrlKnob = new ExtDraggableObject(opacityKnobDiv, { |
|
restrictY: true, |
|
container: opacityDiv |
|
}); |
|
|
|
google.maps.event.addListener(opacityCtrlKnob, "dragend", function () { |
|
setOpacity(opacityCtrlKnob.valueX()); |
|
}); |
|
|
|
google.maps.event.addDomListener(opacityDiv, "click", function (e) { |
|
var left = this.getBoundingClientRect().left; |
|
var x = e.pageX - left - opacityDivMargin; |
|
opacityCtrlKnob.setValueX(x); |
|
setOpacity(x); |
|
}); |
|
|
|
map.controls[google.maps.ControlPosition.TOP_RIGHT].push(opacityDiv); |
|
|
|
|
|
var initialValue = OPACITY_MAX_PIXELS / (100 / opacity); |
|
opacityCtrlKnob.setValueX(initialValue); |
|
setOpacity(initialValue); |
|
} |
|
|
|
function setOpacity(pixelX) { |
|
|
|
var value = (100 / OPACITY_MAX_PIXELS) * pixelX; |
|
if (value < 0) value = 0; |
|
if (value == 0) { |
|
if (overlay.visible == true) { |
|
overlay.hide(); |
|
} |
|
} |
|
else { |
|
overlay.setOpacity(value); |
|
if (overlay.visible == false) { |
|
overlay.show(); |
|
} |
|
} |
|
} |
|
|
|
function createCopyrightControl(map, copyright) { |
|
const label = document.createElement("label"); |
|
label.style.backgroundColor = "#ffffff"; |
|
label.textContent = copyright; |
|
|
|
const div = document.createElement("div"); |
|
div.appendChild(label); |
|
|
|
map.controls[google.maps.ControlPosition.BOTTOM_RIGHT].push(div); |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ExtDraggableObject(src, opt_drag) { |
|
var me = this; |
|
var event_ = (window["GEvent"]||google.maps.Event||google.maps.event); |
|
var opt_drag_=opt_drag||{}; |
|
var draggingCursor_ = opt_drag_.draggingCursor||"default"; |
|
var draggableCursor_ = opt_drag_.draggableCursor||"default"; |
|
var moving_ = false, preventDefault_; |
|
var currentX_, currentY_, formerY_, formerX_, formerMouseX_, formerMouseY_; |
|
var top_, left_; |
|
var mouseDownEvent_, mouseUpEvent_, mouseMoveEvent_; |
|
var originalX_, originalY_; |
|
var halfIntervalX_ = Math.round(opt_drag_.intervalX/2); |
|
var halfIntervalY_ = Math.round(opt_drag_.intervalY/2); |
|
var target_ = src.setCapture?src:document; |
|
|
|
if (typeof opt_drag_.intervalX !== "number") { |
|
opt_drag_.intervalX = 1; |
|
} |
|
if (typeof opt_drag_.intervalY !== "number") { |
|
opt_drag_.intervalY = 1; |
|
} |
|
if (typeof opt_drag_.toleranceX !== "number") { |
|
opt_drag_.toleranceX = Infinity; |
|
} |
|
if (typeof opt_drag_.toleranceY !== "number") { |
|
opt_drag_.toleranceY = Infinity; |
|
} |
|
|
|
mouseDownEvent_ = event_.addDomListener(src, "mousedown", mouseDown_); |
|
mouseUpEvent_ = event_.addDomListener(target_, "mouseup", mouseUp_); |
|
|
|
setCursor_(false); |
|
if (opt_drag_.container) { |
|
|
|
} |
|
src.style.position = "absolute"; |
|
opt_drag_.left = opt_drag_.left||src.offsetLeft; |
|
opt_drag_.top = opt_drag_.top||src.offsetTop; |
|
opt_drag_.interval = opt_drag_.interval||1; |
|
moveTo_(opt_drag_.left, opt_drag_.top, false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setCursor_(a) { |
|
if(a) { |
|
src.style.cursor = draggingCursor_; |
|
} else { |
|
src.style.cursor = draggableCursor_; |
|
} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function moveTo_(x, y, prevent) { |
|
var roundedIntervalX_, roundedIntervalY_; |
|
left_ = Math.round(x); |
|
top_ = Math.round(y); |
|
if (opt_drag_.intervalX>1) { |
|
roundedIntervalX_ = Math.round(left_%opt_drag_.intervalX); |
|
left_ = (roundedIntervalX_<halfIntervalX_)?(left_-roundedIntervalX_):(left_+(opt_drag_.intervalX-roundedIntervalX_)); |
|
} |
|
if (opt_drag_.intervalY>1) { |
|
roundedIntervalY_ = Math.round(top_%opt_drag_.intervalY); |
|
top_ = (roundedIntervalY_<halfIntervalY_)?(top_-roundedIntervalY_):(top_+(opt_drag_.intervalY-roundedIntervalY_)); |
|
} |
|
if (opt_drag_.container&&opt_drag_.container.offsetWidth) { |
|
left_ = Math.max(0,Math.min(left_,opt_drag_.container.offsetWidth-src.offsetWidth)); |
|
top_ = Math.max(0,Math.min(top_,opt_drag_.container.offsetHeight-src.offsetHeight)); |
|
} |
|
if (typeof currentX_ === "number") { |
|
if (((left_-currentX_)>opt_drag_.toleranceX||(currentX_-(left_+src.offsetWidth))>opt_drag_.toleranceX)||((top_-currentY_)>opt_drag_.toleranceY||(currentY_-(top_+src.offsetHeight))>opt_drag_.toleranceY)) { |
|
left_ = originalX_; |
|
top_ = originalY_; |
|
} |
|
} |
|
if(!opt_drag_.restrictX&&!prevent) { |
|
src.style.left = left_ + "px"; |
|
} |
|
if(!opt_drag_.restrictY&&!prevent) { |
|
src.style.top = top_ + "px"; |
|
} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
function mouseMove_(ev) { |
|
var e=ev||event; |
|
currentX_ = formerX_+((e.pageX||(e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft))-formerMouseX_); |
|
currentY_ = formerY_+((e.pageY||(e.clientY+document.body.scrollTop+document.documentElement.scrollTop))-formerMouseY_); |
|
formerX_ = currentX_; |
|
formerY_ = currentY_; |
|
formerMouseX_ = e.pageX||(e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft); |
|
formerMouseY_ = e.pageY||(e.clientY+document.body.scrollTop+document.documentElement.scrollTop); |
|
if (moving_) { |
|
moveTo_(currentX_,currentY_, preventDefault_); |
|
event_.trigger(me, "drag", {mouseX: formerMouseX_, mouseY: formerMouseY_, startLeft: originalX_, startTop: originalY_, event:e}); |
|
} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
function mouseDown_(ev) { |
|
var e=ev||event; |
|
setCursor_(true); |
|
event_.trigger(me, "mousedown", e); |
|
if (src.style.position !== "absolute") { |
|
src.style.position = "absolute"; |
|
return; |
|
} |
|
formerMouseX_ = e.pageX||(e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft); |
|
formerMouseY_ = e.pageY||(e.clientY+document.body.scrollTop+document.documentElement.scrollTop); |
|
originalX_ = src.offsetLeft; |
|
originalY_ = src.offsetTop; |
|
formerX_ = originalX_; |
|
formerY_ = originalY_; |
|
mouseMoveEvent_ = event_.addDomListener(target_, "mousemove", mouseMove_); |
|
if (src.setCapture) { |
|
src.setCapture(); |
|
} |
|
if (e.preventDefault) { |
|
e.preventDefault(); |
|
e.stopPropagation(); |
|
} else { |
|
e.cancelBubble=true; |
|
e.returnValue=false; |
|
} |
|
moving_ = true; |
|
event_.trigger(me, "dragstart", {mouseX: formerMouseX_, mouseY: formerMouseY_, startLeft: originalX_, startTop: originalY_, event:e}); |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
function mouseUp_(ev) { |
|
var e=ev||event; |
|
if (moving_) { |
|
setCursor_(false); |
|
event_.removeListener(mouseMoveEvent_); |
|
if (src.releaseCapture) { |
|
src.releaseCapture(); |
|
} |
|
moving_ = false; |
|
event_.trigger(me, "dragend", {mouseX: formerMouseX_, mouseY: formerMouseY_, startLeft: originalX_, startTop: originalY_, event:e}); |
|
} |
|
currentX_ = currentY_ = null; |
|
event_.trigger(me, "mouseup", e); |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
me.moveTo = function(point) { |
|
moveTo_(point.x, point.y, false); |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
me.moveBy = function(size) { |
|
moveTo_(src.offsetLeft + size.width, src.offsetHeight + size.height, false); |
|
} |
|
|
|
|
|
|
|
|
|
|
|
me.setDraggingCursor = function(cursor) { |
|
draggingCursor_ = cursor; |
|
setCursor_(moving_); |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
me.setDraggableCursor = function(cursor) { |
|
draggableCursor_ = cursor; |
|
setCursor_(moving_); |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
me.left = function() { |
|
return left_; |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
me.top = function() { |
|
return top_; |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
me.valueX = function() { |
|
var i = opt_drag_.intervalX||1; |
|
return Math.round(left_ / i); |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
me.valueY = function() { |
|
var i = opt_drag_.intervalY||1; |
|
return Math.round(top_ / i); |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
me.setValueX = function(value) { |
|
moveTo_(value * opt_drag_.intervalX, top_, false); |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
me.setValueY = function(value) { |
|
moveTo_(left_, value * opt_drag_.intervalY, false); |
|
}; |
|
|
|
|
|
|
|
|
|
|
|
me.preventDefaultMovement = function(prevent) { |
|
preventDefault_ = prevent; |
|
}; |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function load() { |
|
|
|
var options = { |
|
center: mapBounds.getCenter(), |
|
zoom: mapMaxZoom, |
|
mapTypeId: google.maps.MapTypeId.HYBRID, |
|
|
|
|
|
mapTypeControl: true, |
|
mapTypeControlOptions: { |
|
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, |
|
position: google.maps.ControlPosition.TOP_LEFT |
|
}, |
|
|
|
|
|
scaleControl: true, |
|
scaleControlOptions: { |
|
position: google.maps.ControlPosition.BOTTOM_RIGHT |
|
} |
|
}; |
|
|
|
map = new google.maps.Map( document.getElementById("map"), options); |
|
google.maps.event.addListenerOnce(map, "projection_changed", function() { |
|
map.setZoom(getZoomByBounds( map, mapBounds )); |
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CustomTileOverlay = function (map, opacity) { |
|
this.tileSize = new google.maps.Size(256, 256); |
|
|
|
this.map = map; |
|
this.opacity = opacity; |
|
this.tiles = []; |
|
|
|
this.visible = false; |
|
this.initialized = false; |
|
|
|
this.self = this; |
|
} |
|
|
|
CustomTileOverlay.prototype = new google.maps.OverlayView(); |
|
|
|
CustomTileOverlay.prototype.getTile = function (p, z, ownerDocument) { |
|
|
|
for (var n = 0; n < this.tiles.length; n++) { |
|
if (this.tiles[n].id == 't_' + p.x + '_' + p.y + '_' + z) { |
|
return this.tiles[n]; |
|
} |
|
} |
|
|
|
|
|
var tile = ownerDocument.createElement('div'); |
|
var tp = this.getTileUrlCoord(p, z); |
|
tile.id = 't_' + tp.x + '_' + tp.y + '_' + z |
|
tile.style.width = this.tileSize.width + 'px'; |
|
tile.style.height = this.tileSize.height + 'px'; |
|
tile.style.backgroundImage = 'url(' + this.getTileUrl(tp, z) + ')'; |
|
tile.style.backgroundRepeat = 'no-repeat'; |
|
|
|
if (!this.visible) { |
|
tile.style.display = 'none'; |
|
} |
|
|
|
this.tiles.push(tile) |
|
|
|
this.setObjectOpacity(tile); |
|
|
|
return tile; |
|
} |
|
|
|
|
|
|
|
CustomTileOverlay.prototype.deleteHiddenTiles = function (zoom) { |
|
var bounds = this.map.getBounds(); |
|
var tileNE = this.getTileUrlCoordFromLatLng(bounds.getNorthEast(), zoom); |
|
var tileSW = this.getTileUrlCoordFromLatLng(bounds.getSouthWest(), zoom); |
|
|
|
var minX = tileSW.x - 1; |
|
var maxX = tileNE.x + 1; |
|
var minY = tileSW.y - 1; |
|
var maxY = tileNE.y + 1; |
|
|
|
var tilesToKeep = []; |
|
var tilesLength = this.tiles.length; |
|
for (var i = 0; i < tilesLength; i++) { |
|
var idParts = this.tiles[i].id.split("_"); |
|
var tileX = Number(idParts[1]); |
|
var tileY = Number(idParts[2]); |
|
var tileZ = Number(idParts[3]); |
|
if (( |
|
(minX < maxX && (tileX >= minX && tileX <= maxX)) |
|
|| (minX > maxX && ((tileX >= minX && tileX <= (Math.pow(2, zoom) - 1)) || (tileX >= 0 && tileX <= maxX))) |
|
) |
|
&& (tileY >= minY && tileY <= maxY) |
|
&& tileZ == zoom) { |
|
tilesToKeep.push(this.tiles[i]); |
|
} |
|
else { |
|
delete this.tiles[i]; |
|
} |
|
} |
|
|
|
this.tiles = tilesToKeep; |
|
}; |
|
|
|
CustomTileOverlay.prototype.pointToTile = function (point, z) { |
|
var projection = this.map.getProjection(); |
|
var worldCoordinate = projection.fromLatLngToPoint(point); |
|
var pixelCoordinate = new google.maps.Point(worldCoordinate.x * Math.pow(2, z), worldCoordinate.y * Math.pow(2, z)); |
|
var tileCoordinate = new google.maps.Point(Math.floor(pixelCoordinate.x / this.tileSize.width), Math.floor(pixelCoordinate.y / this.tileSize.height)); |
|
return tileCoordinate; |
|
} |
|
|
|
CustomTileOverlay.prototype.getTileUrlCoordFromLatLng = function (latlng, zoom) { |
|
return this.getTileUrlCoord(this.pointToTile(latlng, zoom), zoom) |
|
} |
|
|
|
CustomTileOverlay.prototype.getTileUrlCoord = function (coord, zoom) { |
|
var tileRange = 1 << zoom; |
|
var y = tileRange - coord.y - 1; |
|
var x = coord.x; |
|
if (x < 0 || x >= tileRange) { |
|
x = (x % tileRange + tileRange) % tileRange; |
|
} |
|
return new google.maps.Point(x, y); |
|
} |
|
|
|
|
|
CustomTileOverlay.prototype.getTileUrl = function (tile, zoom) { |
|
|
|
if ((zoom < mapMinZoom) || (zoom > mapMaxZoom)) { |
|
return "https://gdal.org/resources/gdal2tiles/none.png"; |
|
} |
|
var ymax = 1 << zoom; |
|
var y = ymax - tile.y -1; |
|
var tileBounds = new google.maps.LatLngBounds( |
|
fromMercatorPixelToLatLng( new google.maps.Point( (tile.x)*256, (y+1)*256 ) , zoom ), |
|
fromMercatorPixelToLatLng( new google.maps.Point( (tile.x+1)*256, (y)*256 ) , zoom ) |
|
); |
|
if (mapBounds.intersects(tileBounds)) { |
|
return zoom+"/"+tile.x+"/"+tile.y+".png"; |
|
} else { |
|
return "https://gdal.org/resources/gdal2tiles/none.png"; |
|
} |
|
|
|
} |
|
|
|
CustomTileOverlay.prototype.initialize = function () { |
|
if (this.initialized) { |
|
return; |
|
} |
|
var self = this.self; |
|
this.map.overlayMapTypes.insertAt(0, self); |
|
this.initialized = true; |
|
} |
|
|
|
CustomTileOverlay.prototype.hide = function () { |
|
this.visible = false; |
|
|
|
var tileCount = this.tiles.length; |
|
for (var n = 0; n < tileCount; n++) { |
|
this.tiles[n].style.display = 'none'; |
|
} |
|
} |
|
|
|
CustomTileOverlay.prototype.show = function () { |
|
this.initialize(); |
|
this.visible = true; |
|
var tileCount = this.tiles.length; |
|
for (var n = 0; n < tileCount; n++) { |
|
this.tiles[n].style.display = ''; |
|
} |
|
} |
|
|
|
CustomTileOverlay.prototype.releaseTile = function (tile) { |
|
tile = null; |
|
} |
|
|
|
CustomTileOverlay.prototype.setOpacity = function (op) { |
|
this.opacity = op; |
|
|
|
var tileCount = this.tiles.length; |
|
for (var n = 0; n < tileCount; n++) { |
|
this.setObjectOpacity(this.tiles[n]); |
|
} |
|
} |
|
|
|
CustomTileOverlay.prototype.setObjectOpacity = function (obj) { |
|
if (this.opacity > 0) { |
|
if (typeof (obj.style.filter) == 'string') { obj.style.filter = 'alpha(opacity:' + this.opacity + ')'; } |
|
if (typeof (obj.style.KHTMLOpacity) == 'string') { obj.style.KHTMLOpacity = this.opacity / 100; } |
|
if (typeof (obj.style.MozOpacity) == 'string') { obj.style.MozOpacity = this.opacity / 100; } |
|
if (typeof (obj.style.opacity) == 'string') { obj.style.opacity = this.opacity / 100; } |
|
} |
|
} |
|
|
|
|
|
|
|
|
|
overlay = new CustomTileOverlay(map, initialOpacity); |
|
overlay.show(); |
|
|
|
google.maps.event.addListener(map, 'tilesloaded', function () { |
|
overlay.deleteHiddenTiles(map.getZoom()); |
|
}); |
|
|
|
|
|
createOpacityControl(map, initialOpacity); |
|
|
|
var copyright = ""; |
|
if( copyright != "" ) { |
|
createCopyrightControl(map, copyright); |
|
} |
|
|
|
resize(); |
|
} |
|
|
|
onresize=function(){ resize(); }; |
|
|
|
|
|
</script> |
|
</head> |
|
<body onload="load()"> |
|
<div id="header"><h1>colored_ca_range_size_rarity.tif</h1></div> |
|
<div id="subheader">Generated by <a href="https://gdal.org/programs/gdal2tiles.html">GDAL2Tiles</a>, Copyright © 2008 <a href="http://www.klokan.cz/">Klokan Petr Pridal</a>, <a href="https://gdal.org">GDAL</a> & <a href="http://www.osgeo.org/">OSGeo</a> <a href="http://code.google.com/soc/">GSoC</a> |
|
|
|
</div> |
|
<div id="map"></div> |
|
</body> |
|
</html> |
|
|