- Added support for
Popup
andTooltip
children toImageOverlay
PR #270 by rjdestigter. - Added
createLeafletElement()
andupdateLeafletElement()
methods to simplify the abstraction between React's lifecycle hooks and Leaflet's APIs. See the relevant section of the upgrading guide for more information.
Fixed updating the className
property of Map
.
Fixed binding events in FeatureGroup
.
- Fixed updating
opacity
andzIndex
inWMSTileLayer
(PR #259 by YannickBochatay). - [doc] Added link to plugins documentation in README (PR #258 by jakehm).
Changes from v0.12.3:
- [BREAKING] Updated Leaflet dependency requirement to v1.0.0.
- [BREAKING] Renamed
GeoJson
toGeoJSON
to match Leaflet's change. - [BREAKING] Removed
MultiPolygon
andMultiPolyline
, now supported byPolygon
andPolyline
respectively. - [BREAKING] Removed
CanvasTileLayer
, replaced byGridLayer
. See Leaflet's documentation. - [BREAKING] Removed
getLeafletElement()
method inMapComponent
andMapControl
, deprecated since v0.12.0. - [BREAKING] Removed
setIconDefaultImagePath()
helper, setLeaflet.Icon.Default.imagePath
directly using Leaflet if you need. Leaflet.Icon.Default.imagePath
is no longer set by default, as per Leaflet v1.0.0 it should be auto-detected.- The
Map
component no longer creates an unique ID for its container if none is provided. - Added
useFlyTo: bool
property toMap
to useflyTo
instead ofsetView
andflyToBounds
instead offitBounds
when changing the map's view or bounds (PR #148 by jgimbel). - Added
GridLayer
. - Added
Pane
component introduced in Leaflet v1. (PR #227 by rjdestigter). - Added
Tooltip
component introduced in Leaflet v1. See Leaflet's documentation for usage. - Added support for IE9 and IE10 (PR #235 by dettier).
- Updated
WMSTileLayer
to support dynamicurl
and parameters. - [internal] Fixed Flow errors (PR #251 by joeyrosztoczy).
- [internal] Updated
MapLayer
to only create divs when necessary. - [internal] Removed
BaseTileLayer
, replaced byGridLayer
. - [internal] Removed
bower.json
file.
Updated WMSTileLayer
to support dynamic url
property.
- Added
Pane
component introduced in Leaflet v1. (PR #227 by rjdestigter). - Added support for IE9 and IE10 (PR #235 by dettier).
- Updated
WMSTileLayer
to support dynamic parameters.
- [BREAKING] Removed
setIconDefaultImagePath()
helper, setLeaflet.Icon.Default.imagePath
directly using Leaflet if you need. - Updated Leaflet dependency requirement to v1.0.0.
Leaflet.Icon.Default.imagePath
is no longer set by default, as per Leaflet v1.0.0 it should be auto-detected.
Fixed Tooltip
removal handling.
- Added
Tooltip
component introduced in Leaflet v1.0.0-rc.2. See Leaflet's documentation for usage. - Updated Leaflet dependency to v1.0.0-rc.3.
- Reverted basing components on
React.PureComponent
, they are now based onReact.Component
.
- [BREAKING] Renamed
GeoJson
toGeoJSON
to match Leaflet's change. - [BREAKING] Removed
MultiPolygon
andMultiPolyline
, now supported byPolygon
andPolyline
respectively. - [BREAKING] Removed
CanvasTileLayer
, replaced byGridLayer
. See Leaflet's documentation. - [BREAKING] Removed
getLeafletElement()
method inMapComponent
andMapControl
, deprecated since v0.12.0. - Removed
BaseTileLayer
, replaced byGridLayer
. - Removed
bower.json
file. - The
Map
component no longer creates an unique ID for its container if none is provided. - All components now extend from
React.PureComponent
instead ofReact.Component
, as such React v15.3.0+ is now required. - Added
GridLayer
. - Added
useFlyTo: bool
property toMap
to useflyTo
instead ofsetView
andflyToBounds
instead offitBounds
when changing the map's view or bounds (PR #148 by jgimbel).
Fixed events bindind in UMD build.
- Updated propTypes to allow polygons with holes in
MultiPolygon
(PR #218 by ernoaapa). - Fixed badly named
ScaleControl
class.
- Fixed unmounting
LayersControl
when theMap
is unmounting as well. - Added a plugins section to the documentation.
- [BREAKING] Moved Leaflet instances injection from props to context. All components provided by this lib should continue to work as expected, but custom components need to be updated. Read the UPGRADING file for more information.
- Deprecated
getLeafletElement()
method, simply use theleafletElement
property instead. - Documentation moved to the docs folder and has been split into different files for better readability.
Fixed removing layers from LayersControl
.
- Fixed allowing to set and update the
style
prop as a function inGeoJson
. - [internal] Added lodash-webpack-plugin to reduce the size of the UMD build.
- Fixed updating
boundsOptions
in theMap
without updatingbounds
. - Fixed setting
opacity
andzIndex
properties to0
in tile layers.
Fixed TileLayer
properties update.
Made the draggable
property in Marker
dynamic (PR #148 by riolowry).
Fixed layer removal in LayersControl
.
Fixed map
property injection in LayersControl
(PR #142 by Dahlgren).
- [BREAKING] Added
layerContainer
property as a consistent replacement formap
orlayerGroup
(PR #132 by boromisp). This is only breaking if you are creating custom components, as you will need to make sure to also inject thelayerContainer
property to children layers as you need to do withmap
. - Changed
LayersControl
to be based on components:- Added
LayersControl.BaseLayer
container component to add a base layer to aLayersControl
. - Added
LayersControl.Overlay
container component to add an overlay to aLayersControl
. baseLayers
andoverlays
properties forLayersControl
are still supported but deprecated. Using either of them will make theLayersControl
behave the same way it does in versions < 0.11.
- Added
- Deprecated
onLeaflet...
properties for events, simply useon...
, exonClick
instead ofonLeafletClick
. - Added warnings for deprecated features, the same way React does. Make sure to address these warnings to ease the transition to future releases.
- Added React v15.0.0 support as peer dependency.
- [internal] Fixed
no-unused-vars
linting (PR #131 by boromisp).
- Added
animate
optional property toMap
(PR #126 by mariusandra). - Added React v15.0.0-rc.1 support as peer dependency.
- Added the popup container as source layer to
Popup
creation, fixes #113 (PR #112 by amarant). - [internal] Updated Lodash to v4.
- Added
AttributionControl
,LayersControl
andScaleControl
(PR #100 by jonboiser). - Added example to render a list of custom Markers (PR #104 by varya).
- [internal] Updated Babel to v6.
- Removed
PopupContainer
component, extended internally by other components. FeatureGroup
now expects its layers to be passed as children, likeLayerGroup
.- Added
renderChildrenWithProps()
toMapLayer
, used internally by the library. - Added
MapControl
as base component for controls. - Added
ZoomControl
.
Fix PropTypes
export.
Changes from v0.7.0:
- Updated React to v0.14.0.
- Added ReactDOM v0.14.0 to peer dependencies.
Popup
now renders its contents usingReactDOM.render()
and therefore supports dynamic children.Map
now supports dynamicbounds
andmaxBounds
properties (#72).- Added
LayerGroup
component (#58).
Check if Popup
content node exists before trying to unmount.
- Updated React to v0.14.0-rc1.
- Added ReactDOM v0.14.0-rc1 to peer dependencies.
Popup
now renders its contents usingReactDOM.render()
and therefore supports dynamic children.
- Updated Leaflet to v0.7.5.
- Added
Path
base component for vector layers, handling dynamic Path options properties. - Added support for holes in
Polygon
. - [internal] Updated Jest to v0.5.
- [internal] Updated Gulpfile to use Babel.
- [internal] Added ESLint validation.
Fix ignored events in MapComponent
(#41).
Fix PopupContainer
export.
- Added
style
property on theMap
component. - Replaced the
<noscript>
element inPopupContainer
by a<div>
to be properly updated.
Set icon
, zIndexOffset
and opacity
properties as dynamic on Marker
.
- Removed
getLeafletElement()
deprecation. - Updated Babel to v5.
Released v0.4.
React v0.13.0.
- Updated React dependency to v0.13.0-rc2:
- Components are defined as ES6 classes.
- Mixins are replaced by the base components
MapComponent
,MapLayer
,BaseTileLayer
andPopupContainer
. All components extend from these. - The new
React.cloneElement()
API is used instead of the deprecatedReact.addons.cloneWithProps()
to pass themap
property to the components. - The
map
property has been removed from the componentspropTypes
definition as it is dynamically injected to its children by theMap
component, React would now warn it is not set. It is still required by components to have access to the Leaflet object.
- Events can now be set as
on{Event}
rather thanonLeaflet{Event}
, exonClick
instead ofonLeafletClick
, as all events are proxied to Leaflet. - Deprecated
getLeafletElement()
method, simply use theleafletElement
property instead to access the Leaflet object created for a component.