2014-08-15 23:46:04 +04:00
|
|
|
(function($, OC) {
|
2017-08-23 14:51:37 +03:00
|
|
|
$(function() {
|
|
|
|
var attribution = '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>';
|
2014-08-10 23:33:43 +04:00
|
|
|
|
2017-08-23 14:51:37 +03:00
|
|
|
var mapQuest = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
2014-08-27 02:00:27 +04:00
|
|
|
attribution : attribution,
|
2017-08-23 14:51:37 +03:00
|
|
|
noWrap: true,
|
|
|
|
detectRetina: true
|
|
|
|
});
|
|
|
|
var map = L.map('map', {
|
|
|
|
zoom: 3,
|
|
|
|
center: new L.LatLng(40.745, 74.2),
|
|
|
|
maxBounds: new L.LatLngBounds(new L.LatLng(-90, 180), new L.LatLng(90, -180)),
|
|
|
|
layers: [mapQuest]
|
|
|
|
});
|
|
|
|
});
|
2014-08-31 15:21:13 +04:00
|
|
|
})(jQuery, OC);
|