Free javascript Hosting


mfy-base.js

Uploaded on Jan 08 2022 21:49 by vdechartres

// delete div du splash screen



setTimeout(fade_out, 5000);



function fade_out() {

$("#mydiv").fadeOut().empty();

}





// normal

var params = {};

window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) {

params[key] = value;

});







var vdlibraries = L.tileLayer.wms('http://mappingforyou.eu/geoserver/wms?', {

layer: localmap,

maxZoom: 20,

format: 'image/png',

attribution: '↖Menu . Categories↗)'

});



var hillshading = L.tileLayer('http://{s}.tiles.wmflabs.org/hillshading/{z}/{x}/{y}.png', {

maxZoom: 20,

});





var lat = params.lat || init.lat;

var lng = params.lng || init.lng;

var map = L.map('map', {

center: [lat, lng],

maxBounds: bounds,

// crs: L.CRS.EPSG4326,

minZoom: minZoom,

maxZoom:maxZoom,

urlView: true,

zoom: params.zoom || init.zoom,

layers: [vdlibraries, hillshading],

zoomControl: true,

fullscreenControl: true,

fullscreenControlOptions: {

position: 'topleft'

}

});



if (!map.options.urlView || !map.urlView.viewLoaded()) {

map.fitWorld();

};



// specify popup options

var customOptions =

{

maxHeight: 200, maxWidth: 200

};

Back to list