davetimmins / arcgis-react-redux-legend Goto Github PK
View Code? Open in Web Editor NEW:seedling: Legend control for ArcGIS JS v4 using React and Redux
Home Page: https://davetimmins.github.io/arcgis-react-redux-legend/
:seedling: Legend control for ArcGIS JS v4 using React and Redux
Home Page: https://davetimmins.github.io/arcgis-react-redux-legend/
Dynamically set the displayed swatches based on the current definitionExpression for a sublayer in a MapImageLayer
Happens frequently on mobile devices, scale dependent layers that aren't visible don't get greyed out as a consequence.
Can use this to get the legend for feature layers when using v4.11 or later
https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML
Legend widget looks to have been reworked for v4.4 of the Esri JS API so will need some changes
Currently this is calculated in the view component, makes more sense to do in the reducer and then don't bother storing the scale.
Now that layers are initialised when ready they can be added to the map out of order.
The current layer find lookup uses the layer name / title. This means that if > 1 layer has the same name it won't do anything.
FYI - I've requested to add this library to http://devarchy.com/react-components under the "Map" section. I'm not sure how that list works, but seems like it requires a certain amount of up votes? If you use this component, you may want to go there and up vote it.
When I go to https://davetimmins.com/arcgis-react-redux-legend/ sometimes I see:
Look at using nwb https://github.com/insin/nwb
Add basic usage instructions to readme
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.