POST
|
Hi @rubenhesselink, Thank you for the question. Please see here for a sample of using a non-mercator projection for a tiled service: https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection/ Following that sample, using your projection (https://epsg.io/28992), I am getting your layer to work here: https://jsbin.com/cejovuy/2/edit?html,output /* create new Proj4Leaflet CRS:
1. Proj4 and WKT definitions can be found at sites like https://epsg.io, https://spatialreference.org/ or by using gdalsrsinfo https://www.gdal.org/gdalsrsinfo.html
2. Appropriate values to supply to the resolution and origin constructor options can be found in the ArcGIS Server tile server REST endpoint (ex: https://tiles.arcgis.com/tiles/qHLhLQrcvEnxjtPr/arcgis/rest/services/OS_Open_Background_2/MapServer).
3. The numeric code within the first parameter (ex: `27700`) will be used to project the dynamic map layer on the fly
*/
const crs = new L.Proj.CRS(
"EPSG:28992","+proj=sterea +lat_0=52.1561605555556 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.4171,50.3319,465.5524,1.9342,-1.6677,9.1019,4.0725 +units=m +no_defs +type=crs",
{
origin: [-30515500, 31112399.999999993],
resolutions: [
3251.206502413005,
1625.6032512065026,
812.8016256032513,
406.40081280162565,
203.20040640081282,
101.60020320040641,
50.800101600203206,
25.400050800101603,
12.700025400050801,
6.350012700025401,
3.1750063500127004,
1.5875031750063502,
]
}
);
const map = L.map("map", {
crs: crs
}).setView([51.92, 5.2], 3);
// The min/maxZoom values provided should match the actual cache thats been published. This information can be retrieved from the service endpoint directly.
L.esri
.tiledMapLayer({
url: "https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Historische_tijdreis_2023/MapServer",
maxZoom: 11,
minZoom: 0
})
.addTo(map); I hope this helps! Gavin
... View more
08-01-2024
07:25 AM
|
0
|
0
|
90
|
POST
|
Hi @marius, can you please post an example public webmap with layers that demonstrate the issue you're having? Then I think it will be easier to work through this issue with you. Thanks!
... View more
07-30-2024
06:25 AM
|
0
|
0
|
56
|
POST
|
Hi @Cmeng, in order to help assist you, could you please post a minimal replication case that demonstrates the issue, so I'm able to run it and see your issue? Then I'll be able to look into it and we can hopefully get it resolved for you. Thank you!
... View more
07-30-2024
06:20 AM
|
0
|
0
|
69
|
POST
|
Hi, thanks for the question. Could you please post an example code that demonstrates the error/problem that you're seeing? You can either post the HTML/JS/CSS right into a message here, or you can use a service like JSBin or Codepen or Stackblitz. Thanks!
... View more
04-02-2024
06:39 AM
|
0
|
1
|
321
|
POST
|
Hi, thank you for the question. Can you please post the replication steps that you are following to get this outcome? I ask because when I follow these steps I get "found 0 vulnerabilities": npm create vite@latest my-react-app -- --template react
cd my-react-app
npm install
npm install @esri/arcgis-rest-request
npm install @esri/arcgis-rest-geocoding
npm audit
... View more
04-01-2024
11:54 AM
|
0
|
0
|
206
|
POST
|
Hi, if you're using the geocode function, the default is to return the X and Y in the WGS84 spatial reference (SRID: 4326), which is essentially lat/long. The X will be the longitude and the Y will be the latitude. You can also pass in a different spatial reference for it to return and it will return the X/Y in that spatial reference. But you should not need to do that since you want lat/long and that is the default. Here is a tutorial that may help: https://developers.arcgis.com/arcgis-rest-js/geocode-and-search/search-for-an-address/
... View more
03-08-2024
06:14 AM
|
0
|
0
|
280
|
POST
|
Hi, there are two examples of using non-Mercator projections here: https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection/ https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection-2/ Please pay attention to the warning on that page though: This demo should be implemented at your own risk. Esri Leaflet only supports tiles that have been published in Web Mercator Auxiliary Sphere tiling scheme (WKID 102100/3857). Strong knowledge of projections, spatial references and tiling schemes is required for this.
... View more
03-07-2024
06:04 AM
|
0
|
0
|
272
|
POST
|
Hi, it looks like the way of downloading the libraries changed. Here's how I changed my sample: https://github.com/gavinr-maps/experience-builder-devops-example/blob/4a856844af8a2c11ece1c6abeb00c5638006fc17/.github/workflows/build-app.yml#L19
... View more
03-06-2024
07:59 AM
|
1
|
1
|
524
|
POST
|
Hi, the GitHub CI example is here: https://github.com/gavinr-maps/experience-builder-devops-example
... View more
01-29-2024
10:51 AM
|
0
|
0
|
591
|
POST
|
Hi, I think the issue you reference has the solution you're looking for: combine the code example from https://github.com/Esri/esri-leaflet/issues/426#issue-52828917 with the LOD calculation from here: https://github.com/Esri/esri-leaflet/issues/426#issuecomment-459169743 example: https://codepen.io/gavinr/pen/qBgLJzw?editors=0010 I hope this helps!
... View more
12-05-2023
06:39 PM
|
0
|
0
|
398
|
POST
|
Hi, you can sign up for a free developer account here: https://developers.arcgis.com/sign-up/ You can see more about pricing here: https://developers.arcgis.com/pricing/ (Access to the vector tiles that you're using here falls under the "Basemap Layers" (2,000,000 tiles free) section of this page) You can also contact Esri (https://www.esri.com/en-us/contact#c=us&t=1) if you need more help selecting a plan.
... View more
09-27-2023
11:51 AM
|
0
|
0
|
1291
|
POST
|
Hi, the best way to show a topographic basemap would be to use the Esri Leaflet Vector plugin. Here is a tutorial you can follow: https://developers.arcgis.com/esri-leaflet/maps/display-a-map/ Here is sample code you can use: https://developers.arcgis.com/esri-leaflet/samples/showing-a-basemap Then you can use "arcgis/topographic" as the basemap enum. See this sample for an example of all the different basemap styles: https://developers.arcgis.com/esri-leaflet/maps/change-the-basemap-style-v2/
... View more
09-27-2023
05:49 AM
|
0
|
0
|
1301
|
POST
|
Hi, thanks for the question. We do have a few samples showing different projections, but please note the cautionary statement from these pages: This demo should be implemented at your own risk. Esri Leaflet only supports tiles that have been published in Web Mercator Auxiliary Sphere tiling scheme (WKID 102100/3857). Strong knowledge of projections, spatial references and tiling schemes is required for this. https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection/ https://developers.arcgis.com/esri-leaflet/samples/non-mercator-projection-2/
... View more
09-20-2023
06:11 AM
|
0
|
0
|
665
|
POST
|
I think there is a solution in this other thread: https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-functionality-without-map/m-p/1015278#M71340 Here is another option: https://codepen.io/gavinr/pen/oNaYawp
... View more
05-15-2023
11:42 AM
|
0
|
0
|
1050
|
POST
|
Hi CkRuss, one option to get development help for your project is to reach out to Esri Professional Services: https://www.esri.com/en-us/arcgis/services/consulting#consult
... View more
12-29-2022
01:20 PM
|
1
|
1
|
412
|
Title | Kudos | Posted |
---|---|---|
1 | 07-26-2019 11:05 AM | |
1 | 03-06-2024 07:59 AM | |
1 | 12-29-2022 01:20 PM | |
1 | 06-21-2022 06:17 AM | |
1 | 07-08-2022 06:45 AM |
Online Status |
Offline
|
Date Last Visited |
08-01-2024
03:57 PM
|