New answers tagged

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