I want to add my GeoEvent Feature Service to Map Viewer Classic in AGOL. I need to know which URL is the right one to use:
https://mygis.mycity.gov/mymachine/rest/services/GeoEventMap/FeatureServer
or
https://mygis.mycity.gov/mymachine/rest/services/GeoEventMap/FeatureServer/0
I already added the 2nd one as a layer to Map Viewer Classic and it seems to be reading the events. But want to make sure this is the correct one to add.
Thank you.
Hi @TimHayes3,
Either URL will work. Each layer is added with an index value when published to a service. If you have 3 layers in your service, by default, the index would be sequential for each layer (i.e. FeatureServer/0, FeatureServer/1, FeatureServer/2).
The first URL will add all layers within your service. The second URL is calling an individual layer in the service by specify /0. If your service only has one layer, then both are synonymous.