Aller au contenu principal

Can you edit the default basemaps?

Commentaires

5 commentaires

  • Cam Barnard

    Morning Travis,

     

    For Basemaps. Currently the way you select your default basemap is to configure the default basemap in the web map / web scene you are consuming. We are working on a first light weight basemap configuration component that will allow you as the application administrator to choose which of the Esri basemaps you want to show up as options in the basemap picker. As we continue development we intend to start putting mechanisms in place for directly consuming map services which will then allow a more robust basemap picker where you can specify your own services.

     

    Cam

    0
  • Cam Barnard

    For WMTS's we've been testing and adjusting things as we find them. If you want to pass along a URL to the WMTS you are using via e-mail I'm happy to have someone look at what is going on in this case. One thing we would check for is that the map services defined in the web map are properly CORS enabled. Some of the 'rules' have changed between Esri's JavaScript 3.x API (which powers AGOL map viewer) and Esri's JavaScript 4.x API (which powers Web Viewer) which can result in a map service working perfectly well in AGOL but not working in Web Viewer. See the Known Issues post (point 3) if you want to know more on this.

    0
  • Travis Brousseau

    Sounds good Cam. If it's at all possible to just remove the basemap picker all together until some of those developments occur that would be great too. Would that be possible with modifying the custom XML?

     

    I'll message you about the WMTS.

    0
  • Cam Barnard

    Hi Travis - yes you can completely remove the basemap picker from your app. To do this you:

    1. Open the app in Designer
    2. Go to Deploy, and use the three-dot menu next to Development to 'Download as Zip File'
    3. Unzip it locally and open the layout.xml
    4. Delete lines 32-34 (see below)
    5. Re-zip
    6. In Deploy, use the three-dot menu next to Development to 'Upload Zip File'
    7. ... no more basemap control in your layout so no more basemap control in your visible app.

    layout

    0
  • Travis Brousseau

    Excellent Cam, that works for me.

    0

Vous devez vous connecter pour laisser un commentaire.