Trouble adding search widget to ArcGIS Shortlist Story App

后端 未结 2 982
栀梦
栀梦 2021-01-28 20:55

I \'m having issues adding in a search widget to a shortlist application. I have included the code below. The search bar shows up, but is not functional. I am needing to have th

2条回答
  •  孤独总比滥情好
    2021-01-28 21:54

    Well, I went though your code the major error i can see is that multiple define error.

    Root Cause:

    The main reason for it you are loading those libraries more than once who expose define.

    Solution:

    • In your case i noticed you have loaded ArcGIS JS Api more than once.

    • Just load only one source of ArcGIS it should work.

    • One more thinh in attached code you are using multiple versions of CSS.

    • you are suppose to use same version of ESRI CSS which you are using for JS.
    • As per your code you are using legacy model of coding style so go for arcgis js api's that version only.

    Code without multiple define error: https://jsfiddle.net/vikash2402/362ft9g7/

    Hoping this will help you :)

提交回复
热议问题