Can we create API locally server not on the ESRI server.
I want to create this api
Are you asking if you can create a tile service outside of ArcGIS Server? You mentioned the API, which can be hosted locally, but it doesn't sound like this is what you're looking to accomplish.
This sample uses GeoJSONLayer, but you can also create a FeatureLayer from the graphics returned by a geojson call... it's just a little more work. Let me know if GeoJSONLayer isn't something you can use and I'll supply a sample for converting GeoJSON into a FeatureLayer.
For tiles, can you use ArcGIS Online? Also, have a look at this - https://community.esri.com/thread/184269-is-it-possible-to-render-mapbox-vector-tiles-pbf-from-a-cus...
Thank you so much for reply.
Firstly can you provide me sample code to convert GeoJson to Feature layer.
Second, I have mostly NDVI images they are tiff files. That's why i was using tiles to display my Tiff files.
If you have any other way we can display tiff image. Without ArcGis Server.
Thirdly,I was thinking about postGresql to save these layer.
Here's another one of my threads that has code on how to convert GeoJSON to FeatureLayer:
...let me see if I can create something for you...
Here are a couple more samples that do not use ArcGIS Enterprise as the primary data source:
Are you asking how to publish and host tiled layers and feature layers on a non-ArcGIS server? Honestly, I'm not sure how to do that. The samples above show how to consume resources without using ArcGIS Enterprise. Some layers can be hosted and consumed (like VectorTileLayer, WebTileLayer, WMS, and WMTS) from a third-party server, and some cannot (e.g. MapImageLayer, FeatureLayer). For the FeatureLayer, you could still create one programmatically, but I think only ArcGIS Enterprise can host an actual FeatureLayer. Soon, the 4x version of the JS API will support WebFeatureLayer (which is currently supported at 3x).
Your best bet is to:
1) review documentation for third party servers, like GeoServer, and OGC standards
2) review our API reference for how to consume such layer types