forked from rstudio/leaflet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEWS
175 lines (111 loc) · 7.37 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
leaflet 2.0.0.9000
--------------------------------------------------------------------------------
FEATURES
* Exposed htmlwidgets sizingPolicy in leaflet() (#548)
BUG FIXES
* Default marker icon locations will now use unpkg.com instead of the leaflet cdn when using https or file protocols. (#544)
* `.leaflet-map-pane` `z-index` switched to 'auto'. Allows for map panes to appear above the map if they appear later in the dom. (#537)
* Use correct Leaflet.js scale control remove method (#547)
leaflet 2.0.0
--------------------------------------------------------------------------------
BREAKING CHANGES
* Update to latest leaflet.js v1.3.1 (#453, 314616f) Please see http://leafletjs.com/reference-1.3.0.html for the latest documentation
* All plugins updated to versions compatible with leaflet > 1.0 (#458)
- jQuery, https://github.com/jquery/jquery
- Leaflet (JavaScript library), https://github.com/Leaflet/Leaflet
- Leaflet Providers, https://github.com/leaflet-extras/leaflet-providers
- leaflet-measure, https://github.com/ljagis/leaflet-measure
- Leaflet.Terminator, https://github.com/joergdietrich/Leaflet.Terminator
- Leaflet.SimpleGraticule, https://github.com/ablakey/Leaflet.SimpleGraticule
- Leaflet.MagnifyingGlass, https://github.com/bbecquet/Leaflet.MagnifyingGlass
- Leaflet.MiniMap, https://github.com/Norkart/Leaflet-MiniMap
- Leaflet.awesome-markers, https://github.com/lvoogdt/Leaflet.awesome-markers
- Leaflet.EasyButton, https://github.com/CliffCloud/Leaflet.EasyButton/
- Proj4Leaflet, https://github.com/kartena/Proj4Leaflet
- leaflet-locationfilter, https://github.com/kajic/leaflet-locationfilter
- leaflet-omnivore, https://github.com/mapbox/leaflet-omnivore
- topojson, https://github.com/topojson/topojson
* Leaflet.label (https://github.com/Leaflet/Leaflet.labelExtension)
- `L.Label` has been adopted within Leaflet.js to `L.Tooltip`
- Tooltips are now displayed with default Leaflet.js styling
- In custom javascript extensions, change all `*.bindLabel()` to `*.bindTooltip()`
BUG FIXES AND FEATURES
* Relative protocols are used where possible when adding tiles (#526). In RStudio 1.1.x on linux and windows, a known issue of 'https://' routes fail to load, but works within browsers (rstudio/rstudio#2661).
* Added more providers for `addProviderTiles()`: "OpenStreetMap.CH", "OpenInfraMap", "OpenInfraMap.Power", "OpenInfraMap.Telecom", "OpenInfraMap.Petroleum", "OpenInfraMap.Water", "OpenPtMap", "OpenRailwayMap", "OpenFireMap", "SafeCast". (4aea447)
* `L.multiPolyline` was absorbed into `L.polyline`, which accepts multiple an array of polyline information. http://leafletjs.com/reference-1.3.0.html#polyline. (#515)
* Fix bug where icons where anchored to the top-center, not center-center (2a60751)
* Fix bug where markers would not appear in self contained knitr files (cc79bc3)
* leaflet-label plugin now L.tooltip in leaflet.js. labelOptions() now translates old options clickable to interactive and noHide to permanent.
* Fix a bug where the default `addTiles()` would not work with .html files
served directly from the filesystem.
* Add `groupOptions` function. Currently the only option is letting you specify
zoom levels at which a group should be visible.
* Fix bug with accessing columns in formulas when the data source is a Crosstalk
SharedData object wrapping a spatial data frame or sf object.
* Fix strange wrapping behavior for legend, especially common for Chrome when
browser zoom level is not 100%.
* Fix incorrect opacity on NA entry in legend. (PR #425)
* Added support for drag events (#405)
* Ensure type safety of .indexOf(stamp) (#396)
* `validateCoords()` warns on invalid polygon data (#393)
* Added `method` argument to `addRasterImage()` to enable nearest neighbor interpolation when projecting categorical rasters (#462)
* Added an `'auto'` method for `addRasterImage()`. Projected factor results are coerced into factors. (9accc7e)
* Added `data` parameter to remaining `addXXX()` methods, including addLegend. (f273edd, #491, #485)
* Added `preferCanvas` argument to `leafletOptions()` (#521)
leaflet 1.1.0
--------------------------------------------------------------------------------
* Add support for sf. sf, sfc, and sfg classes are supported with POINT,
LINESTRING, MULTILINESTRING, POLYGON, and MULTIPOLYGON geometries (note
that MULTIPOINT is not currently supported).
* Added support for Crosstalk (https://rstudio.github.io/crosstalk/).
* Added option to highlight polygons, polylines, circles, and rectangles on
hover (use highlightOptions parameter).
* Fix behavior when data contains NA points, or zero rows. Previously this would
cause an error.
* Added `popupOptions` parameter to all markers and shape layers.
* Upgraded existing plugins to their respective latest versions and added
missing/new functionality from those plugins. (PR #293)
* Added Proj4Leaflet plugin (PR #294).
* Added EasyButton plugin (PR #295).
* Added Graticule plugin (PR #293).
* Color palette improvements. All color palette functions now support viridis
palettes ("viridis", "magma", "inferno", and "plasma").
* Color palette functions now support reversing the order in which colors are
used, via reverse=TRUE.
* `colorFactor` no longer interpolates qualitative RColorBrewer palettes,
unless the number of factor levels being mapped exceeds the number of colors
in the specified RColorBrewer palette. (Issue #300)
* Upgrade leaflet.js to 0.7.7.1 (PR #359)
* Added a way for the Map instance to be instantiated via a factory.
leaflet 1.0.2
--------------------------------------------------------------------------------
* When used with `leafletProxy`, `fitBounds` did not return its input object as
output, so magrittr chains would break after `fitBounds` was called.
* Add addMeasure()/removeMeasure() functions to allow users to measure lines and
areas, via the leaflet-measure plugin by @ljagis. (PR #171. Thanks, Kenton
Russell!)
* Add `input${mapid}_center` Shiny event.
* Add support for labels on most layers, that show either statically or on
hover. (PR #181. Thanks Bhaskar Karambelkar!)
* Add support for markers with configurable colors and icons, via the
Leaflet.awesome-markers plugin by @lvoogdt. See `?addAwesomeMarkers`.
(PR #184. Great work, Bhaskar!)
* Add support for the Leaflet.Terminator plugin by @joergdietrich. Overlays
day and night regions on a map. See `?addTerminator`. (PR #184, thanks
Bhaskar!)
* Add support for Leaflet.SimpleGraticule plugin by @ablakey. See
`?addSimpleGraticule`. (PR #184, thanks again Bhaskar!)
* Add support for Leaflet.MagnifyingGlass plugin by @bbecquet. Adds a
configurable magnifying glass that displays the area under the cursor at an
increased zoom level. See `?addMagnifyingGlass`. (PR #184, still Bhaskar!)
* Add support for Leaflet-MiniMap plugin by @Norkart. Adds a mini map to the
corner that can be used to see or change the bounds of the main map. See
`?addMiniMap`. (PR #184, Bhaskar again!)
* `addScaleBar` and related functions added, for showing Leaflet's built-in
scale bar in one of the corners of the map. (PR #201. Thanks Kent Johnson!)
leaflet 1.0.1
--------------------------------------------------------------------------------
* Fix #242: Compatibility with htmlwidgets 0.6 (thanks byzheng).
leaflet 1.0.0
--------------------------------------------------------------------------------
* Initial release