This repository has been archived by the owner on Oct 27, 2019. It is now read-only.
Releases: baldram/gwt-leaflet-d3
Releases · baldram/gwt-leaflet-d3
Use jsDelivr CDN to handle leaflet-d3 dependency
Fix leaflet-d3 dependency issue
Add leaflet-d3 dependency cache (#13) * Add leaflet-d3 dependencies cache * The final solution will be to introduce `frontend-maven-plugin` in a separate change * Bump library version
Add events handling to Hexbin API
- add a new fluent
onClick()
,onMouseOver()
andonMouseOut()
methods, - add an access to the "dispatcher" for direct dealing with D3 events.
Now it's possible to add events in the builder chain and in less-verbose way, e.g.:
hexbinLayer
.withLng(data -> data.longitude)
.withLat(data -> data.latitude)
.onClick((callers, index) -> {
console.log(callers[0].getData().sensorData.get(0).value);
})
.onMouseOver((callers, index) -> {
console.log("over: " + index);
});
If needed, it's also possible to achieve the same in a way more similar to the original JavaScript API (as you see it's not so concise anymore and in addition it will break the hexbinLayer
builder chain, e.g. you will not be able to add withData()
at the end):
hexbinLayer
.withLng(data -> data.longitude)
.withLat(data -> data.latitude)
.getEventDispatcher()
.on("click", (callers, index) -> {
console.log(callers[0].getData().sensorData.get(0).value);
})
.on("mouseover", (callers, index) -> {
console.log("over: " + index);
});
Extended HexbinLayer API
- fix radiusRange handling,
- add colorDomain and radiusDomain options
Fixed JsOverlay usage problem for API's `setData()` method
0.2.2 Bump library version
Extended HexbinLayer API
- added a new method
void setData(T[] data)
which is equivalent towithData(T[] data)
but makes API more clear in the context of a updating data, - updated demo project with fancy random data generator button.
Initial release
0.2.0 Update documentation (#3)