I am using an ArcGIS.com Webmap
in an ESRI Javascript API application I am developing. One of the layers in my Webmap
is rather large and cannot be rendered all at once when zoomed out, however I would like to avoid showing holes in the data on screen when data does actually exist there.
I have seen samples and demos before where it is possible to use a tiled map service to cover the entire large area without rendering all the individual features, but still be able to show an InfoWindow
when the map is clicked. I am assuming this would be done using a FeatureLayer
with its mode
set to SELECTION
and the onClick
handler for the map
would query the FeatureLayer
based on where the map
was clicked, then the selected features would appear on the map
and the InfoWindow
could be visible.
I have not seen where it is possible to set the mode
of a FeatureLayer
that is provided via an ArcGIS.com Webmap
. If I simply create a new FeatureLayer
in my application that points to the Hosted Feature Service
on ArcGIS.com
, then I lose all of the configuration (symbology, popup, etc.) that I have done when publishing the Webmap
.
Is what I have described above possible? If not, is there another way to render a large number of features on the map and still have access to attribute information?
FeatureLayer
and not aFeatureLayer
provided by anArcGIS.com Webmap
. TheWebmap
doesn't seem to provide all the options that aFeatureLayer
constructor does. – Brian Apr 22 at 17:19