Skip to content

Commit

Permalink
BREAKING: Migrate to react-leaflet v3
Browse files Browse the repository at this point in the history
  • Loading branch information
clementallen committed Jan 24, 2021
1 parent 9ce531d commit eeff4be
Show file tree
Hide file tree
Showing 3 changed files with 355 additions and 137 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ npm install react-leaflet-textpath --save
### Complete example with react-leaflet

```jsx
import { Map, TileLayer } from 'react-leaflet';
import { MapContainer, TileLayer } from 'react-leaflet';
import TextPath from 'react-leaflet-textpath';

<Map center={[51.505, -0.09]} zoom={13}>
<MapContainer center={[51.505, -0.09]} zoom={13}>
<TileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
Expand All @@ -49,7 +49,7 @@ import TextPath from 'react-leaflet-textpath';
center
offset={10}
/>
</Map>;
</MapContainer>;
```

### \<TextPath />
Expand Down
Loading

0 comments on commit eeff4be

Please sign in to comment.