Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Preparing new v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVelarde committed Nov 11, 2017
1 parent eca4ce0 commit cc4343c
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 2,724 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
#v1.3.5
- Added CI testing with travis, thanks to @sirreal (https://github.com/IHCantabria/Leaflet.CanvasLayer.Field/pull/12)

#v1.4.0 in progress...
- Added an optional parameter `spatialMask` to layers. The mask defines a region for which the raster values will be considered (for rendering and identifying operations).


#v1.4.0
- Added an optional parameter `spatialMask` (+ `setSpatialMask` method) to apply a Clip on `ScalarField`. The mask defines a Polygon as a GeoJSON Feature for which the raster values will be considered (for rendering and identifying operations). See `example_ScalarField_Mask`. This feature uses `@turf/inside`.
- Minor:
- examples have been updated to work with Leaflet 1.2.0
- added a little npm badge in README file
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ A plugin for [LeafletJS](http://www.leafletjs.com) that adds layers to visualize
**[Leaflet.CanvasLayer.Field EXAMPLES](https://ihcantabria.github.io/Leaflet.CanvasLayer.Field/)**

![Travis CI](https://travis-ci.org/IHCantabria/Leaflet.CanvasLayer.Field.svg?branch=master)
[![npm version](https://badge.fury.io/js/leaflet-canvaslayer-field.svg)](https://badge.fury.io/js/leaflet-canvaslayer-field)

It includes:
* `L.CanvasLayer.ScalarField` - a "typical" raster layer (from scalars such as DTM, temperature...) that can be rendered with different color scales and arrows.
Expand Down Expand Up @@ -35,7 +36,7 @@ If you want to have a quick testing environment, have a look at these **snippets
2. Include the JavaScript dependencies in your page:
```html
<!-- CDN references -->
<script src="//npmcdn.com/leaflet@1.1.0/dist/leaflet.js"></script>
<script src="//npmcdn.com/leaflet@1.2.0/dist/leaflet.js"></script>

<script src="//cdnjs.cloudflare.com/ajax/libs/chroma-js/1.3.4/chroma.min.js"></script>
<script src="//d3js.org/d3.v4.min.js"></script>
Expand Down
Loading

0 comments on commit cc4343c

Please sign in to comment.