sarahbellum / canvas-flowmap-layer Goto Github PK
View Code? Open in Web Editor NEWA map layer for mapping the flow of objects. Extends Esri JSAPI and renders on the HTML canvas.
License: MIT License
A map layer for mapping the flow of objects. Extends Esri JSAPI and renders on the HTML canvas.
License: MIT License
Hi,
Not a JS dev here. I tried to run the main demo locally, but it fails to load config.js.
From what I can see, esri requires config.js to be publicly available right? If yes, is there a workaround this?
Cheers
Isn't it possible to change the thickness of the line in proportion to the amount of movement?
Any idea?
Thanks for advance.
I think we can get rid of our own custom animation functions and instead use dojo/fx/easing
which appears to provide a host of functions to choose from. This could reduce the source code we have to maintain and provide users/devs with far more options.
If this dojo module works the way I think it does from my massive research spanning a whole 10 minutes, then I propose that we change the animationStyle
property to accept any of the function names in this dojo module, e.g.:
new CanvasFlowmapLayer({
animationStyle: 'quadIn' // string, can be any of the function names in dojo/fx/easing
});
In the layer source code I believe we can then alter values as needed by simply passing them into, for example:
easing.quadIn(2) // returns 4
easing.quadIn(4) // returns 16
// and so on
Thoughts?
To stay in line with recent changes in Leaflet.Canvas-Flowmap-Layer, the JSAPI v3 source code needs to be updated. See jwasilgeo#18 and PR jwasilgeo#20.
I was wondering how to add marker icons ie. png, htmlIcon etc. Is the feature under development.
<canvas>
elements in a flexible way after any number of potential map image DOM nodesCurrently Canvas-Flowmap-Layer
only works with JSAPI 3.x and extends esri/layers/GraphicsLayer
. High-level summary:
<canvas>
elements into very specific places within the map in the DOM.<canvas>
elements.click
, mouse-over
, etc. functionality that developers using the GraphicsLayer
are already familiar with.The paradigm for creating custom layers in JSAPI 4.x is clearly different than JSAPI 3.x. I'm opening this issue as a placeholder for investigating what it'll take to create a custom JSAPI 4.x layer that'll work in both a MapView
and SceneView
.
cc @ycabon
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.