Comments (5)
I search a little bit and I believe it is when it renders for the first time it return null, but if it is updated it calls the renderContent method which renders the component as it is.
from react-leaflet-control.
Indeed. This needs to update in a componentDidMount
function. I will update in a hour or so.
from react-leaflet-control.
This commit resolved this issue for me. Let me know when you have confirmed.
from react-leaflet-control.
Yeap, problem solved. THX!!!!
from react-leaflet-control.
Hi, I know this is closed. But I am on version 2.0.0 and experiencing the same issue. It loads after only it hot reloads.
from react-leaflet-control.
Related Issues (20)
- onMouseDown events
- When resizing the map and calling invalidateSize() the position of the control changes HOT 1
- compatibility with react v16
- Could not find "store" in either the context or props error while rendering a connected component HOT 5
- Clean unmounting
- why not block event propagation through control to map?
- Fails with latest version of leaflet and react-leaflet HOT 2
- The contents of <Control> do not get rendered on initial <Map> display. HOT 10
- please link to this repo from npm
- Return null always
- undefined is not an object (evaluating 'map._controlCorners') HOT 1
- Could not find declaration file in module 'react-leaflet-contorl' HOT 2
- Legacy API HOT 1
- Crash on startup: `withLeaflet()` is not a function HOT 1
- Can we put up a demo for this?
- Dragging does not work inside control
- Material UI Select Option not Working HOT 1
- Control Rendering underneath Map Tile layer on iOS only HOT 1
- React-Leaflet v3 compatibility HOT 11
- Mark as deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-leaflet-control.