Git Product home page Git Product logo

Comments (8)

alaframboise avatar alaframboise commented on July 26, 2024 1

To get it to load and at least render you need to pull in the .css manually for that component. With a few other background and border overrides you should be able to get to render nicely with Calcite Maps.

  <!-- ArcGIS JS 3.x -->
  <link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/themes/calcite/esri/esri.css">
  <link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/themes/calcite/dijit/calcite.css">
  
  <link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/dijit/LayerList/css/LayerList.css">

from calcite-maps.

TimPeters avatar TimPeters commented on July 26, 2024 1

LayerList widget now working, just needs a litlle css background.
Thank you @alaframboise !

from calcite-maps.

TimPeters avatar TimPeters commented on July 26, 2024 1

Hi @ezequias ,

Here is a JS Bin with the sample code.

from calcite-maps.

tmcgee avatar tmcgee commented on July 26, 2024 1

@ezequias and @TimPeters You might be interested in how we have utilized calcite maps with CMV, the configurable map viewer. The implementation has a full layer list for 3.x as well as many other widgets. Support for 4.x is coming soon. I provided a more detailed answer in issue #150. The repo is available here.

from calcite-maps.

alaframboise avatar alaframboise commented on July 26, 2024

The 3.x doc indicates that the LayerList widget is not supported with the calcite.css theme.

https://developers.arcgis.com/javascript/3/jshelp/css.html

This theme is in beta and does not support all components of the API. The following widgets are supported:

BasemapGallery
BasemapToggle
Bookmarks
Directions
HomeButton
LayerSwipe
Legend
LocateButton
Measurement
OverviewMap
Popup
Print
ScaleBar
Search

from calcite-maps.

ezequias avatar ezequias commented on July 26, 2024

@TimPeters post a sample here please.

from calcite-maps.

ezequias avatar ezequias commented on July 26, 2024

Thank you very much @TimPeters but the LayerListWidget is much more than that.

from calcite-maps.

ezequias avatar ezequias commented on July 26, 2024

I really love it @tmcgee great work. Does it have any kind of licensing?

from calcite-maps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.