Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic draggable props to Marker #148

Merged
merged 2 commits into from
Apr 28, 2016

Conversation

riolowry
Copy link
Contributor

Toggling draggable status is a useful part of leaflet markers, it is nice to have it exposed via props on the Marker component. Usage example included.

@PaulLeCam PaulLeCam merged commit 7f72466 into PaulLeCam:master Apr 28, 2016
@PaulLeCam
Copy link
Owner

Good idea, thanks!

@PaulLeCam
Copy link
Owner

Published in v0.11.3.

PaulLeCam pushed a commit that referenced this pull request May 4, 2016
* Set source argument in Popup creation

* v0.10.1

* Animate panning and zooming

* v0.10.2

* Lint 'object destructuring filter' consistently

The pattern ```const { map, url, ...props } = this.props``` usually
failed during linting, because the ```map``` variable is defined but
not used.

After adding the ```"varsIgnorePattern": "^_"``` option to the
```no-unused-vars``` rule, unused properies can be marked as:
```const { map: _, url, ...props } = this.props```.

I also updated the eslint and babel-eslint dependencies, because of
some relevant bugfixes.

* Add babel-plugin-lodash

* Introduce the concept of 'layer container', as a unified interface for L.Map and L.LayerGroup.

* v0.11 - new LayersControl

* Component-based LayersControl
* Deprecate `onLeaflet...` format for events
* React v15

* LayersControl does not pass map props to children (#142)

* v0.11.1

* v0.11.2

* Add dynamic draggable props to Marker (#148)

* expose ability to toggle marker's draggable status

* fix indentation

* v0.11.3
PaulLeCam pushed a commit that referenced this pull request May 5, 2016
* Set source argument in Popup creation

* v0.10.1

* Animate panning and zooming

* v0.10.2

* Lint 'object destructuring filter' consistently

The pattern ```const { map, url, ...props } = this.props``` usually
failed during linting, because the ```map``` variable is defined but
not used.

After adding the ```"varsIgnorePattern": "^_"``` option to the
```no-unused-vars``` rule, unused properies can be marked as:
```const { map: _, url, ...props } = this.props```.

I also updated the eslint and babel-eslint dependencies, because of
some relevant bugfixes.

* Add babel-plugin-lodash

* Introduce the concept of 'layer container', as a unified interface for L.Map and L.LayerGroup.

* v0.11 - new LayersControl

* Component-based LayersControl
* Deprecate `onLeaflet...` format for events
* React v15

* LayersControl does not pass map props to children (#142)

* v0.11.1

* v0.11.2

* Add dynamic draggable props to Marker (#148)

* expose ability to toggle marker's draggable status

* fix indentation

* v0.11.3

* Changes removeFrom to remove in MapControl

* Removes MultiPolyline; multipolylines are now supported by Polyline

* Removes MultiPolygon; multipolygons are now supported by Polygon

* Removes CanvasTileLayer, which has been removed from leaflet

* Updates Circle instantiator to use new format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants