ADD топографические карты
This commit is contained in:
parent
01ee3ee34c
commit
bc0deaf64f
|
|
@ -39,9 +39,10 @@
|
|||
<div id="boxLayers">
|
||||
<h3>Карты</h3>
|
||||
<div onclick="setLayer('quest')" class="layers questLayer">map Quest</div>
|
||||
<div onclick="setLayer('osm')" class="layers osmLayer">Open Street Map</div>
|
||||
<div onclick="setLayer('topo')" class="layers osmLayer">Генштаб от маршруты.ру</div>
|
||||
<div onclick="setLayer('google')" class="layers googleLayer">Google maps</div>
|
||||
<div onclick="setLayer('yandex')" class="layers yandexLayer">Яндекс.Карты</div>
|
||||
<div onclick="setLayer('osm')" class="layers osmLayer">Open Street Map</div>
|
||||
<div onclick="setLayer('yandexMap')" class="layers yandexMapLayer">Яндекс.Карты (схема)</div>
|
||||
</div>
|
||||
<div id="boxFilter" style="height: 100%; overflow-y: auto;">
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ function init(lat, lng) {
|
|||
|
||||
layers['quest'] = L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', {attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com">Mapbox</a>', maxZoom: 18});
|
||||
layers['osm'] = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery ©</a>', maxZoom: 18});
|
||||
layers['topo'] = L.tileLayer('http://maps.marshruty.ru/ml.ashx?x={x}&y={y}&z={z}&i=1&al=1', {attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http://www.marshruty.ru/">Маршруты.ру</a>', maxZoom: 15});
|
||||
layers['google'] = new L.Google('HYBRID');
|
||||
layers['yandexMap'] = new L.Yandex();
|
||||
layers['yandex'] = new L.Yandex('hybrid');
|
||||
|
|
|
|||
Loading…
Reference in New Issue