Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

leafletjs openstreets example

var OpenStreetMap_Mapnik = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
	maxZoom: 19,
	attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
});
var OpenAIP = L.tileLayer('http://{s}.tile.maps.openaip.net/geowebcache/service/tms/1.0.0/openaip_basemap@EPSG%3A900913@png/{z}/{x}/{y}.{ext}', {
	attribution: '<a href="https://www.openaip.net/">openAIP Data</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-NC-SA</a>)',
	ext: 'png',
	minZoom: 4,
	maxZoom: 14,
	tms: true,
	detectRetina: true,
	subdomains: '12'
});
Comment

leafletjs openstreets example

var OpenStreetMap_Mapnik = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
	maxZoom: 19,
	attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
});
var OpenAIP = L.tileLayer('http://{s}.tile.maps.openaip.net/geowebcache/service/tms/1.0.0/openaip_basemap@EPSG%3A900913@png/{z}/{x}/{y}.{ext}', {
	attribution: '<a href="https://www.openaip.net/">openAIP Data</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-NC-SA</a>)',
	ext: 'png',
	minZoom: 4,
	maxZoom: 14,
	tms: true,
	detectRetina: true,
	subdomains: '12'
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: Using Props In React: Assigning CSS 
Javascript :: modal example react native 
Javascript :: react js require pasword to have special charaacter 
Javascript :: orderbychild firebase react 
Javascript :: hide console log level in js 
Javascript :: jquery toggle visibility 
Javascript :: Fetching data error and pending load check 
Javascript :: waypoint 
Javascript :: react node-sass 
Javascript :: angular cli spec test false 
Javascript :: puppeteer waitforselector 
Javascript :: window close function in javascript 
Javascript :: electron open dev tools 
Javascript :: Error capturing image. ionic 
Javascript :: wait 0.5 after function javascript 
Javascript :: javascript Display Time Every 3 Second 
Javascript :: javascript compare timestamp 
Javascript :: python restapi use post json 
Javascript :: js try..catch works synchronously. 
Javascript :: array empty strings 
Javascript :: switch into the postgres user windows 10 
Javascript :: javascript Short and Long date format 
Javascript :: Font Size changed from device OS react native app 
Javascript :: test one function in react class 
Javascript :: lexical scoping in javascript 
Javascript :: axios put request 
Javascript :: faker js uuid example 
Javascript :: hammerjs 
Javascript :: angular async 
Javascript :: interactive svg javascript 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =