robert-w / esri-react-toc Goto Github PK
View Code? Open in Web Editor NEWTOC widget for Esri's 4.0 Javascript API.
License: MIT License
TOC widget for Esri's 4.0 Javascript API.
License: MIT License
Map
, WebMap
, and more.src
folder.
examples
directory and src
should only contain the TOC source code when stable.separateSubLayers
: MapImageLayers that have sublayers would be shown as separate entries in the TOC so they could be manipulated individually, versus turning the whole layer on or off. Useful for WebMap
type.overrides
: Object whose key would be a layer id and value would be something to override:
legendImg
: to use a simple img
tag with the provided image for the legend instead of the endpointlegendUrl
& legendId
: If your endpoint does not have a nice legend and you have another endpoint to use, provide that here. If it's a specific sublayer, specify that as well otherwise the whole legend will be returned.label
: Override the layer name and add a custom name. Useful if you want to support other languages.sublabel
: Sublabel to show underneath the layer label. Useful for attribution or other things.children
: Custom react components to embed under the appropriate layer. If you want to build some custom control, like a time slider that is layer specific, and have it embedded in the TOC, do so here. The user should also be able to subscribe to change events via layerDidUpdate
prop so they can show and hide custom controls that are not in the scope of the TOC widget.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.