Added most big cities, rulers, and zoomify
BIN
public/icons/castle-shadow.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
public/icons/castle.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
public/icons/circle.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/icons/monument-shadow.png
Normal file
|
After Width: | Height: | Size: 1000 B |
BIN
public/icons/monument.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
1
public/js/leaflet-measure.min.js
vendored
Normal file
130
public/js/leaflet-zoomify.min.js
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* L.TileLayer.Zoomify display Zoomify tiles with Leaflet
|
||||
*
|
||||
* Based on the Leaflet.Zoomify (https://github.com/turban/Leaflet.Zoomify)
|
||||
* from turban (https://github.com/turban)
|
||||
*
|
||||
*/
|
||||
|
||||
L.TileLayer.Zoomify = L.TileLayer.extend({
|
||||
options: {
|
||||
width: -1, // Must be set by user, max zoom image width
|
||||
height: -1, // Must be set by user, max zoom image height
|
||||
tileGroupPrefix: 'TileGroup',
|
||||
tilesPerTileGroup: 256
|
||||
},
|
||||
|
||||
initialize: function (url, options) {
|
||||
L.TileLayer.prototype.initialize.call(this, url, options);
|
||||
|
||||
// Replace with automatic loading from ImageProperties.xml
|
||||
if (this.options.width < 0 || this.options.height < 0) {
|
||||
throw new Error('The user must set the Width and Height of the Zoomify image');
|
||||
}
|
||||
},
|
||||
|
||||
beforeAdd: function (map) {
|
||||
var imageSize = L.point(this.options.width, this.options.height);
|
||||
|
||||
// Build the zoom sizes of the pyramid and cache them in an array
|
||||
this._imageSize = [imageSize];
|
||||
this._gridSize = [this._getGridSize(imageSize)];
|
||||
|
||||
// Register the image size in pixels and the grid size in # of tiles for each zoom level
|
||||
while (imageSize.x > this.options.tileSize || imageSize.y > this.options.tileSize) {
|
||||
imageSize = imageSize.divideBy(2).ceil();
|
||||
this._imageSize.push(imageSize);
|
||||
this._gridSize.push(this._getGridSize(imageSize));
|
||||
}
|
||||
|
||||
// We built the cache from bottom to top, but leaflet uses a top to bottom index for the zoomlevel,
|
||||
// so reverse it for easy indexing by current zoomlevel
|
||||
this._imageSize.reverse();
|
||||
this._gridSize.reverse();
|
||||
|
||||
// Register our max supported zoom level
|
||||
var maxNativeZoom = this._gridSize.length - 1;
|
||||
this.options.maxNativeZoom = maxNativeZoom;
|
||||
|
||||
// Register our bounds for this zoomify layer based on the maximum zoom
|
||||
var maxZoomGrid = this._gridSize[maxNativeZoom],
|
||||
maxX = maxZoomGrid.x * this.options.tileSize,
|
||||
maxY = maxZoomGrid.y * this.options.tileSize,
|
||||
southEast = map.unproject([maxX, maxY], maxNativeZoom);
|
||||
this.options.bounds = new L.LatLngBounds([[0, 0], southEast]);
|
||||
|
||||
L.TileLayer.prototype.beforeAdd.call(this, map);
|
||||
},
|
||||
|
||||
// Calculate the grid size for a given image size (based on tile size)
|
||||
_getGridSize: function (imageSize) {
|
||||
var tileSize = this.options.tileSize;
|
||||
return L.point(Math.ceil(imageSize.x / tileSize), Math.ceil(imageSize.y / tileSize));
|
||||
},
|
||||
|
||||
// Extend the add tile function to update our arbitrary sized border tiles
|
||||
_addTile: function (coords, container) {
|
||||
// Load the tile via the original leaflet code
|
||||
L.TileLayer.prototype._addTile.call(this, coords, container);
|
||||
|
||||
// Get out imagesize in pixels for this zoom level and our grid size
|
||||
var imageSize = this._imageSize[this._getZoomForUrl()],
|
||||
gridSize = this._gridSize[this._getZoomForUrl()];
|
||||
|
||||
// The real tile size (default:256) and the display tile size (if zoom > maxNativeZoom)
|
||||
var realTileSize = L.GridLayer.prototype.getTileSize.call(this),
|
||||
displayTileSize = L.TileLayer.prototype.getTileSize.call(this);
|
||||
|
||||
// Get the current tile to adjust
|
||||
var key = this._tileCoordsToKey(coords),
|
||||
tile = this._tiles[key].el;
|
||||
|
||||
// Calculate the required size of the border tiles
|
||||
var scaleFactor = L.point( (imageSize.x % realTileSize.x),
|
||||
(imageSize.y % realTileSize.y)).unscaleBy(realTileSize);
|
||||
|
||||
// Update tile dimensions if we are on a border
|
||||
if ((imageSize.x % realTileSize.x) > 0 && coords.x === gridSize.x - 1) {
|
||||
tile.style.width = displayTileSize.scaleBy(scaleFactor).x + 'px';
|
||||
}
|
||||
|
||||
if ((imageSize.y % realTileSize.y) > 0 && coords.y === gridSize.y - 1) {
|
||||
tile.style.height = displayTileSize.scaleBy(scaleFactor).y + 'px';
|
||||
}
|
||||
},
|
||||
|
||||
// Construct the tile url, by inserting our tilegroup before we template the url
|
||||
getTileUrl: function (coords) {
|
||||
// Set our TileGroup variable, and then let the original tile templater do the work
|
||||
this.options.g = this.options.tileGroupPrefix + this._getTileGroup(coords);
|
||||
|
||||
// Call the original templater
|
||||
return L.TileLayer.prototype.getTileUrl.call(this, coords);
|
||||
},
|
||||
|
||||
// Calculates the TileGroup number, each group contains 256 tiles. The tiles are stored from topleft to bottomright
|
||||
_getTileGroup: function (coords) {
|
||||
var zoom = this._getZoomForUrl(),
|
||||
num = 0,
|
||||
gridSize;
|
||||
|
||||
// Get the total number of tiles from the lowest zoom level to our zoomlevel
|
||||
for (var z = 0; z < zoom; z++) {
|
||||
gridSize = this._gridSize[z];
|
||||
num += gridSize.x * gridSize.y;
|
||||
}
|
||||
|
||||
// Add the remaining tiles from this zoom layer to the running total of tiles
|
||||
num += coords.y * this._gridSize[zoom].x + coords.x;
|
||||
return Math.floor(num / this.options.tilesPerTileGroup);
|
||||
},
|
||||
|
||||
getBounds: function () {
|
||||
return this.options.bounds;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
L.tileLayer.zoomify = function (url, options) {
|
||||
return new L.TileLayer.Zoomify(url, options);
|
||||
};
|
||||
BIN
public/leaflet-measure/assets/cancel.png
Normal file
|
After Width: | Height: | Size: 397 B |
BIN
public/leaflet-measure/assets/cancel_@2X.png
Normal file
|
After Width: | Height: | Size: 762 B |
BIN
public/leaflet-measure/assets/check.png
Normal file
|
After Width: | Height: | Size: 387 B |
BIN
public/leaflet-measure/assets/check_@2X.png
Normal file
|
After Width: | Height: | Size: 692 B |
BIN
public/leaflet-measure/assets/focus.png
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
public/leaflet-measure/assets/focus_@2X.png
Normal file
|
After Width: | Height: | Size: 462 B |
BIN
public/leaflet-measure/assets/leaflet-measure.png
Normal file
|
After Width: | Height: | Size: 595 KiB |
BIN
public/leaflet-measure/assets/rulers.png
Normal file
|
After Width: | Height: | Size: 192 B |
BIN
public/leaflet-measure/assets/rulers_@2X.png
Normal file
|
After Width: | Height: | Size: 277 B |
BIN
public/leaflet-measure/assets/start.png
Normal file
|
After Width: | Height: | Size: 491 B |
BIN
public/leaflet-measure/assets/start_@2X.png
Normal file
|
After Width: | Height: | Size: 1003 B |
BIN
public/leaflet-measure/assets/trash.png
Normal file
|
After Width: | Height: | Size: 279 B |
BIN
public/leaflet-measure/assets/trash_@2X.png
Normal file
|
After Width: | Height: | Size: 460 B |
1
public/leaflet-measure/leaflet-measure.css
Normal file
|
Before Width: | Height: | Size: 312 KiB |
1
public/zoomify/alliance-kaldelienne/ImageProperties.xml
Normal file
@@ -0,0 +1 @@
|
||||
<IMAGE_PROPERTIES WIDTH="14658" HEIGHT="15168" NUMTILES="4660" NUMIMAGES="1" VERSION="1.8" TILESIZE="256" />
|
||||
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/0-0-0.jpg
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/1-0-0.jpg
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/1-0-1.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/1-1-0.jpg
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/1-1-1.jpg
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-0-0.jpg
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-0-1.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-0-2.jpg
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-0-3.jpg
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-1-0.jpg
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-1-1.jpg
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-1-2.jpg
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-1-3.jpg
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-2-0.jpg
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-2-1.jpg
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-2-2.jpg
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-2-3.jpg
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-3-0.jpg
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-3-1.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-3-2.jpg
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/2-3-3.jpg
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-0.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-1.jpg
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-2.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-3.jpg
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-4.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-5.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-6.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-0-7.jpg
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-0.jpg
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-1.jpg
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-2.jpg
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-3.jpg
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-4.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-5.jpg
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-6.jpg
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-1-7.jpg
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-0.jpg
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-1.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-2.jpg
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-3.jpg
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-4.jpg
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-5.jpg
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-6.jpg
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-2-7.jpg
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-0.jpg
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-1.jpg
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-2.jpg
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-3.jpg
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-4.jpg
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-5.jpg
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-6.jpg
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-3-7.jpg
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-0.jpg
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-1.jpg
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-2.jpg
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-3.jpg
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-4.jpg
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-5.jpg
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-6.jpg
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-4-7.jpg
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-0.jpg
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-1.jpg
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-2.jpg
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-3.jpg
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-4.jpg
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-5.jpg
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-6.jpg
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-5-7.jpg
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-0.jpg
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-1.jpg
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-2.jpg
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-3.jpg
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-4.jpg
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-5.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-6.jpg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
public/zoomify/alliance-kaldelienne/TileGroup0/3-6-7.jpg
Normal file
|
After Width: | Height: | Size: 2.7 KiB |