Pan controls ArcGIS4

412
12
03-25-2024 05:04 AM
azy141
by
New Contributor II

Hi I am looking to add pan controls in the form of arrows to an ArcGIS4 JS map but have been struggling to find the specific api to allow me to do this.

I was wondering if anyone had any input on how I could go about doing this?

 

Thank you

0 Kudos
12 Replies
azy141
by
New Contributor II

That makes sense to me when using for a widget with only 1 icon but the d pad has 8 icons but only 1 instance of

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectionalPad.html#icon

I don't quite understand how I would use this to override the north, east, south, west arrows etc?

0 Kudos
MatthewDriscoll
MVP Alum

I see.  I think you are going to need to customize the calcite.  I looked here, but cannot find which would be the best place to start.

0 Kudos
MatthewDriscoll
MVP Alum

Here is a example of changing the calcite design.  I switched the chevrons to arrows.

https://codepen.io/mbdriscoll/pen/wvZyXoE?editors=1010

 

0 Kudos