Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Releases: baldram/gwt-leaflet-d3

Use jsDelivr CDN to handle leaflet-d3 dependency

08 Jan 21:31
986d1ae
Compare
Choose a tag to compare

Fix leaflet-d3 dependency issue

08 Jan 19:10
86fe8d0
Compare
Choose a tag to compare
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

09 Sep 06:31
ff59ef6
Compare
Choose a tag to compare
  • add a new fluent onClick(), onMouseOver() and onMouseOut() 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

09 Sep 06:14
7bce4d6
Compare
Choose a tag to compare
  • fix radiusRange handling,
  • add colorDomain and radiusDomain options

Fixed JsOverlay usage problem for API's `setData()` method

26 Aug 07:31
7a797cf
Compare
Choose a tag to compare

Extended HexbinLayer API

25 Aug 21:10
a32903e
Compare
Choose a tag to compare
  • added a new method void setData(T[] data) which is equivalent to withData(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

23 Aug 18:43
b37b18e
Compare
Choose a tag to compare
0.2.0

Update documentation (#3)