New answers tagged

0

The cluster symbol depends on the feature layer symbol, take a look at the examples an explanation of the API documentation, styles and configuration section. ArcGIS API - FeatureReductionCluster While this can be thought of as a visualization technique, clustering is actually a method of reducing features in the view. It is therefore independent of the ...


0

When setting params.where, the field name before the attribute value was missing. Thus, the updated code that builds a working query is: params.where = "MajBas =" + "'" + basinTypeSelect.value + "'";


0

In the years since I asked this question, there have been many changes in the ArcGIS Server JavaScript API. The latest version 4.x now contains an out-of-the-box LayerList widget. It doesn't contain every item in my wish-list but is a great place to start.


0

You need to indicate the map to show the labels. In order to do this just set Map property showLabels to true. In your code, map = new Map("map", { basemap: "satellite", center: [-46.807, 32.553], zoom: 3, showLabels: true // <- HERE });


1

You actually almost got it. The problem in your code is that you are using template2 in the feature layer flayer. In order to get the result you want, use template for flayer, const fLayer = new FeatureLayer({ portalItem: { id: "b5665da3feab4b6091914cbfe4ab028f" }, popupTemplate: template, // <- template for popup layerId: 0, ...


Top 50 recent answers are included