JS API 4.2 - How to show navigation controls for popups attached to stacked point graphics?

367
0
09-20-2019 04:38 PM
TroyNguyen
New Contributor

I have a MapView with two point graphics:

```

var view = new MapView(...)

view.graphics.add(new Graphic({

  geometry: {

    type: "point",

    longitude: "-90",

    latitude: "40"

  },

  symbol: {  type: "simple-marker", ... },

  popupTemplate: { title: "some title" }

});

view.graphics.add(new Graphic({

  geometry: {

    type: "point",

    longitude: "-90",

    latitude: "40"

  },

  symbol: {  type: "simple-marker", ... },

  popupTemplate: { title: "some title" }

});

```

What I want is to be able to toggle between popups of the two graphics with navigation controls. I had previously been able to do this in API version up to 4.9, but since upgrading to 4.10+ this behavior is no longer there. Below are pictures of the issue:

(version 4.6 https://i.stack.imgur.com/ve5AZ.png )

(version 4.12 https://i.stack.imgur.com/vQ4Gg.png )

Simply changing API versions resulted in these differences in navigation controls being displayed.

0 Kudos
0 Replies