I am new to leaflet.
I am trying to change Leaflet project to EPSG:32624 but it is not working. The map is not showing neither the marker.
var crs = new L.Proj.CRS('EPSG:32634',
'+proj=utm +zone=34 +datum=WGS84 +units=m +no_defs',
{
resolutions: [
8192, 4096, 2048, 1024, 512, 256, 128,
64, 32, 16, 8, 4, 2, 1, 0.5
],
//transformation: new L.Transformation(1, XOrigin, -1, YOrigin),
origin: [0, 0]
//bounds: L.bounds([218128.7031, 6126002.9379], [1083427.2970, 7692850.9468])
});
map = new L.Map('map', {
crs: crs
});
L.tileLayer('https://api.geosition.com/tile/osm-bright-3006/{z}/{x}/{y}.png', {
maxZoom: 14,
minZoom: 0,
attribution: 'Map data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>, Imagery © <a href="http://www.kartena.se/">Kartena</a>'
}).addTo(map);
map.setView([375776.24622049765, 4509140.3932434358], 7);
var m = new L.marker([375776.24622049765, 4509140.3932434358]).addTo(map);
console.log(m);