can this API connect with my PostgreSQL because i only found the sample how to add layer from our shapefile, GPX etc, but not connecting with our database ...
Hi,
Did you find any solution for this. If yes, can you post a sample.
Regards,
Krish
see the software url about that.
create a query layer for your database layers (as I can understand you have already a Postgres with PostGIS enabled) Creating a query layer—Help | ArcGIS for Desktop from the Desktop Software.
Alternative you can register your database with ArcGIS for Server.
After that publish the layers as Map Services Tutorial: Publishing a map service—Documentation | ArcGIS for Server
Finally access the services through Rest Interface ArcGIS Server providing from ArcGIS Javascript API.
Also take a look on this Esri Video ArcGIS for Server: An Introduction | Esri Video