Pine Bush Proposed Projects html, body, #map-canvas { height: 100%; margin: 0px; padding: 0px; } .lidarBase { filter: brightness(140%) contrast(100%) !important; } .baseLayer, .dblsatBase, .grayscale, .multiplyOverlay, .mapwarp { mix-blend-mode: multiply !important; } .dblsatBase { filter: saturate(150%) contrast(110%) brightness(130%); } .grayscale { filter: grayscale(100%); } .invert { filter: invert(100%) grayscale(100%) contrast(200%) brightness(150%); opacity: 1.0; } .shadow { filter: invert(100%) brightness(500%) contrast(200%) grayscale(100%); opacity: 0.9 !important; } var nyaerial = L.tileLayer.wms( ‘https://orthos.its.ny.gov/ArcGIS/services/wms/Latest/MapServer/WMSServer’, { layers: ‘0,1,2,3’, attribution: ‘Source: NYSGIS‘, className: ‘dblsatBase’, maxZoom: ’21’, opacity: ‘1.0’, });
var lidarBase = L.tileLayer.wms( ‘https://elevation.nationalmap.gov/arcgis/services/3DEPElevation/ImageServer/WMSServer?’, { layers: ‘3DEPElevation:Hillshade Gray’, className: ‘lidarBase’, }
); var zoomLevel=14
var map = L.map(‘map-canvas’, { center: [42.699326745942,-73.888158202171], zoom: zoomLevel, layers: [lidarBase,nyaerial] }); map.fitBounds([[42.736405745262,-73.79035949707033],[42.682355879204,-73.95412445068361]]); // markers
var markers = [ {pos: [42.69269,-73.85808], url: ‘/crossgates’, popup: ‘
Rapp Road Apartments
‘}, {pos: [42.68840,-73.85658], url: ‘/crossgates’, popup: ‘
Costcos
‘}, {pos: [42.69896,-73.88829], url: ‘/10-new-karner’, popup: ‘
10 New Karner Road Subdivision
‘}, {pos: [42.72402,-73.92314], url: ‘/10-new-karner’, popup: ‘
3131 East Old State Road Subdivision
‘}, {pos: [42.70117,-73.88576], url: ‘/24-new-karner’, popup: ‘
24 New Karner Road Senior Living Facility
‘} ]; markers.forEach(function (obj) { var m = L.marker(obj.pos).addTo(map).on(‘click’, function(e) { window.location=’https://savethepinebush.org’+obj.url; } ), p = m.bindTooltip(obj.popup).addTo(map); }); var kmz = L.kmzLayer().addTo(map); kmz.on(‘load’, function(e) {
control.addOverlay(e.layer, e.name);
//e.layer.addTo(map);
});
kmz.load(‘apb2020.kmz’); L.control.scale().addTo(map,{‘imperial’: true}); map.addControl(new L.Control.Fullscreen());