Skip to main content

Questions tagged [proj4leaflet]

a leaflet plugin adds support for using projections.

Filter by
Sorted by
Tagged with
1 vote
2 answers
48 views

Error when using CRS 32718 in Leaflet

I'm trying to specify the CRS 32718 with Proj4Leaflet to a Leaflet map but I'm getting an error: "ERROR TypeError: coordinates must be finite numbers" My code is following: var crs = new ...
Javier Aguilar's user avatar
-1 votes
1 answer
121 views

About CRS and map origin setting, What is their relation and math equation in leaflet.js via using proj4leaflet.js

I meet a problem about CRS function and map origin setting in leaflet. I use proj4leaflet.js as the basic CRS function, and then after setting the origin of crs and resolution, I can get the correct ...
abramhum's user avatar
  • 123
1 vote
1 answer
571 views

Project React-Leaflet map in different projection

I am working on a college project that deals with MAPS. Our project is related to mapping the location of stadiums for the recent FIFA worldcup. The tileserver url provided to us is custom. When I use ...
Antonius Carvalho's user avatar
2 votes
1 answer
188 views

Problem with displaying GeoJSON in EPSG:3575 projection in Leaflet

In the EPSG:3575 projection in the Leaflet, all settings are identical, but GeoJSONs are displayed differently for different rasters. For rasters, the difference is only in the size of the tiles. The ...
Nikolay Zolotov's user avatar
0 votes
1 answer
1k views

Wrapping maps using EPSG:4326 in Leaflet

I'm trying to use a tileserver in my leaflet app that encodes maps in EPSG:4326. I understand that I need to use Proj4Leaflet, and I'm setting up my CRS as follows: const crs = new Leaflet.Proj.CRS( ...
David Hope's user avatar
0 votes
1 answer
991 views

Coordinates (latitude-longitude) give wrong values when defining custom projection with proj4 on Leaflet

I am trying to implement a custom projection system with Leaflet and proj4. I introduced my EPSG:2320 projection with Proj4. But something went wrong on the map screen. Y (longitude) started to ...
Bilal Benzer's user avatar
4 votes
1 answer
1k views

Correct CRS options for Proj4Leaflet to show WMTS layer?

I'm new to custom projections in Leaflet, and now I'm trying to set up a Leaflet map that uses a WMTS service for its tiles, with the custom projection EPSG:3008 (SWEREF99 13 30). I'm using ...
Tim's user avatar
  • 43
1 vote
1 answer
670 views

Leaflet WMS, loading tiles in EPSG:25833 problem

I would like to load tiles from WMS into my Leaflet application. I am using react but help in vanilla JS will be sufficient as well. All I have is WMS URL: https://fbinter.stadt-berlin.de/fb/wms/...
gikdeb's user avatar
  • 35
-1 votes
1 answer
1k views

How do you convert WGS84 GPS coordinates to "SWEREF 99 TM" ones in JavaScript + Leaflet.js + proj4 + proj4leaflet? [closed]

I have made a map system with JavaScript + Leaflet.js + proj4 + proj4leaflet. I'm trying to link to Lantmäteriet's map with the current position, but, of course, they don't use the "WGS84" ...
P Stavropoulos's user avatar
0 votes
2 answers
948 views

Passing GeoJSON API to Leaflet (proj4leaflet) map

I have created a geographical view of a point using Leaflet based on a coordinate system data. Since I'm using the coordinate system rather than lat and long, I'm using proj4leaflet for the conversion ...
Sanath Katakam's user avatar
1 vote
1 answer
679 views

How to use Leaflet to display a map in Lambert Conformal Conic without warping to EPSG:3857

I would like to display a map in leaflet which is in Lambert Conformal Conic. The CRS of this map is: '+proj=lcc +lat_0=38 +lon_0=-100 +lat_1=45 +lat_2=33 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs' ...
jr.'s user avatar
  • 141
3 votes
1 answer
287 views

GeoJSON file content not display properly in Leaflet

I am new to Leaflet. Am facing one issue when try to display GeoJSON file in Leaflet. Issue: Actually some GeoJSON file only am facing this problem. In my knowledge coordinates are in different ...
Ram prasad's user avatar
0 votes
0 answers
311 views

Wrong position of tiles when using Proj4Leaflet for a tiled raster layer

Using Leaflet I am trying to display a tiled raster layer described at the following url : https://mpt.svp.sk/server/rest/services/podkladove_mapy/orto_2019_12v/MapServer I understood that the layer ...
Pierric's user avatar
  • 177
0 votes
0 answers
142 views

WMS with EPSG:3004 not returning tiles in LeafletJS

I am consuming an Italian WMS in a CRS with an EPSG code of 3004 in QGIS. It works somehow (Needed to change the CRS from 4326 to 3004), yet the definition in the GetCapabilities document is strange (...
Riccardo's user avatar
  • 2,668
0 votes
1 answer
605 views

Using gdal2tiles XML output with Proj4Leaflet [closed]

I use gdal2tiles to create tiles from a referenced image (with profile parameter set to "raster"). Then I use Proj4Leaflet to display the results. In order to do that I need to specify ...
D.Moiseev's user avatar
1 vote
1 answer
702 views

Find the right values for bounds and origin for Proj4Leaflet

I'm using Proj4Leaflet to use tile layers with a different CRS (EPSG:25832) in my leaflet project. Now I am somehow lost in finding the correct values for the bounds and origin of the tiles I want to ...
maaattes's user avatar
  • 157
1 vote
0 answers
805 views

Attempted to load an infinite number of tiles while using proj4leaflet and EPSG:32614 [closed]

I get error "Attempted to load an infinite number of tiles" while using proj4leaflet and EPSG:32614. crs = new L.Proj.CRS('EPSG:32614', '+proj=utm +zone=14N +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +...
shubham tiwari's user avatar
2 votes
2 answers
5k views

Converting GeoJSON to projected coordinates in Leaflet?

We are migrating existing angular app from OL to Leaflet. In OL we were able to get the geoJSON in UTM with EPSG:3857 on draw finish However when we complete a draw in leaflet and try to get the ...
user684805's user avatar
2 votes
0 answers
979 views

Specifying EPSG:31370 CRS in R Leaflet for WMS-service returns blank tiles

I am trying to load historical map tiles from a WMS-server (GetCapabilities) and display them using R Leaflet. Using the default CRS in Leaflet works fine, using e.g.: leaflet() %>% setView(4....
mhermans's user avatar
  • 335
0 votes
2 answers
2k views

Changing Leaflet Base CRS using Proj4js

I am trying to change the CRS of a web mapping service in Norway. The projection is EPSG:25832. Here is the WMTS service: https://kartkatalog.geonorge.no/metadata/norge-i-bilder/norge-i-bilder-wmts-...
wlavell's user avatar
  • 59
2 votes
1 answer
747 views

WMTS map with different origins for different zoom levels

I have WMTS map and I'm using proj4leaflet for nonstadard crs. This map has different origins for different zoom levels. First two levels have the same origin, then the next two levels have also the ...
TomazicM's user avatar
  • 26.3k
2 votes
0 answers
2k views

Convert coordinates with Proj4Leaflet from EPSG:25832 to leaflet 3857

I have a wmts server, and try to add this tiles to leaflet with proj4leaflet. My code is here //this one is fine var main = L.tileLayer( 'http://****&zoom={z}&x={x}&y={y}',...
SERG's user avatar
  • 273
3 votes
1 answer
2k views

Problems using a "custom" projection with Leaflet

I'm currently trying to display a dataset on a webapp using Leaflet. All the dataset is projected into French projection Lambert II ESPG 27572. Instead of converting coordinates, I'm trying to setup ...
Vincent Monteil's user avatar
1 vote
1 answer
4k views

"L.Proj is undefined" error when using Proj4Leaflet in Angular 5

I am facing the error "ERROR TypeError: Cannot read property 'CRS' of undefined" caused by L.Proj being undefined. Here what I did : I added Leaflet, Proj4 and Proj4leaflet packages using npm ...
Youssef AIT ALI's user avatar
2 votes
1 answer
1k views

How to load leaflet WMS layer with a CRS other than the map's CRS?

I have a leaflet map initialized with EPSG 3857. I need to add new WMS layer that has projection EPSG 2320. I checked proj4leaflet; but I'm not sure whether a layer that has CRS different than main ...
senol ozgur's user avatar
  • 1,011