trailbehind / leaflet-grids Goto Github PK
View Code? Open in Web Editor NEWLeaflet plugin that support s a few types of grid overlays.
License: MIT License
Leaflet plugin that support s a few types of grid overlays.
License: MIT License
Bonjour Alexandre,
j'ai trouvé sur GitHub
https://github.com/trailbehind/leaflet-grids
avec l'affichage des grilles, exactement comme je le voulais, bravo pour le travail.
Cependant, il y a un petit problème avec l'utilisation des grilles MGRS dans l'affichage du nom de la cellule en 10x10 km, qui indique le même nom pour toutes les cellules d'une maille 100x100
Pour être plus précis, je joins une capture d'écran.
J'ai regardé dans le code, mais je dois avouer que si j'arrive à faire quelques trucs en javascript en empruntant des bouts de code ici et là, je ne suis pas capable de trouver où çà coince.
Merci de votre aide
Cordialement
Some help with leaflet-grids and proj4.js different projection?
Sample map with custom projection:
var crs = new L.Proj.CRS.TMS('EPSG:3067',
'+proj=utm +zone=35 +ellps=GRS80 +units=m +towgs84=0,0,0,-0,-0,-0,0 +no_defs',
[-548576.0, 6291456.0, 1548576.0, 8388608],
{
resolutions: [
8192,
4096,
2048,
1024,
512,
256,
128,
64,
32,
16,
8,
4,
2,
1,
0.5,
0.25,
0.125,
0.0625,
0.03125,
0.015625
]
});
var map = new L.Map('map', {
crs: crs,
continuousWorld: true,
worldCopyJump: false,
zoomControl: true
});
var tilelayer = new L.Proj.TileLayer.TMS('http://{s}.map-place.abc/map/{z}/{x}/{y}.png', crs, {
maxZoom: 19,
minZoom: 0,
tileSize: 256,
tms: true,
continuousWorld: true,
attribution: '©',
subdomains: ['tile1','tile2']
});
Thank you for the great plug-in. It works everywhere I've tested it except IE 11 (V. 11.0.9600.18665).
I get the same error in both my leaflet application and the plugin's included example.
Execution stops at Line 48: L.grids.distance.imperial().addTo(map);
Error: "Unable to get property 'distance' of undefined or null reference".
Any ideas?
Do you have plans to show the Grid Zone Designators (GZD)?
IE: https://mappingsupport.com/p/coordinates-mgrs-google-maps.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.