-
Notifications
You must be signed in to change notification settings - Fork 0
Map & Leaflet documentation
- Leading open-source library for interactive map applications
- Has all the mapping features most developers ever need. List of features
- Includes a lot of plugins.
- Includes layers such as polyline and markers
- Can use most tile layers for map, our tile layer linked below:
http://m{s}.nvdbcache.geodataonline.no/arcgis/rest/services/Trafikkportalen/GeocacheTrafikkJPG/MapServer/tile/{z}/{y}/{x}
This layer should provide a map that looks like this
Use a projection from proj4leaflet to match our GPS-coordinates, here's a guide on how to use proj4leaflet.
This projection handles coordinates in UTM-zone 33.
const Proj = require('proj4leaflet');
// from https://nvdbcache.geodataonline.no/arcgis/rest/services/Trafikkportalen/GeocacheTrafikkJPG/MapServer?request=GetCapabilities
const options = { origin: [-2500000.0, 9045984.0], resolutions: [ 21674.7100160867, 10837.35500804335, 5418.677504021675, 2709.3387520108377, 1354.6693760054188, 677.3346880027094, 338.6673440013547, 169.33367200067735, 84.66683600033868, 42.33341800016934, 21.16670900008467, 10.583354500042335, 5.291677250021167, 2.6458386250105836, 1.3229193125052918, 0.6614596562526459, 0.33072982812632296, 0.16536491406316148 ] };
module.exports = new Proj.CRS('EPSG:25833', '+proj=utm +zone=33 +ellps=GRS80 +units=m +no_defs ', options);
Developers have to match the chosen map with projection zone so coordinates match between map and reality.
-
Product related
-
Development process and guidelines
-
Sprints
-
Testing
-
-
Old notes