Javascript API

2247
14
01-08-2020 12:42 PM
DeveshKhosla
New Contributor

Can we create API locally server not on the ESRI server.

ie. i have https://tiles.arcgis.com/tiles/Ezk9fcjSUkeadg6u/arcgis/rest/services/OPCNM/VectorTileServer 

I want to create this api 

https://localhost:5272/Tiles_VectorTileServer 

Tags (2)
0 Kudos
14 Replies
ChrisSmith7
Frequent Contributor

Noah,

The thread I linked earlier - Is it possible to render mapbox vector tiles (pbf) from a custom tile-server  - has information on doing this successfully using PostGIS, so it's not just in the realm of theory.

ChrisSmith7
Frequent Contributor

So, for example, check-out:

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-vectort... 

In this sample, you can see it closely aligns with the discussion in Is it possible to render mapbox vector tiles (pbf) from a custom tile-server, where this chunk of code is in the Esri sample:

url:
"https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer",
type: "vector"

...to simplify the other aspects, you would need the source (your server) to supply the expected JSON here - to quote:

You now need to serve your actual (pbf) tiles using the url pattern specified. In this example, that would be https://ourhost/oursource/{z}/{x}/{y}.pbf.

0 Kudos
JosephGenther
Esri Contributor

ArcGIS Enterprise is the most robust tool for publishing raster imagery services. However, open source software may also publish in the supported formats that Noah Sager shared above.

Devesh Khosla What is your hangup for why you want an alternative to ArcGIS Enterprise? We may be able to help discover a solution that still fits your goals.

0 Kudos
DeveshKhosla
New Contributor

Beacuse i want to display offline data. Api data only on my machine that's why I am looking for alertnative.

0 Kudos
JosephGenther
Esri Contributor

Would it make sense to create an app using  an ArcGIS Runtime SDK with the local server capability? Direct read, write, and use of local raster, vector, and myriad other data options.

0 Kudos