Comments (1)
I think your map sometime has zero height or width sometime. Be sure to first initialize the map with an initial position and with a defined height and width before trying to call map.getBounds()
. You are able to debug it calling map.getSize()
and checking your browser console.
This is very difficult to reproduce without more information. If you have already fixed or if it's impossible to share further information to reproduce feel free to mark as closed. Thank you so much! :)
from leaflet-areaselect.
Related Issues (20)
- IE11 rendering issues HOT 1
- ability to set max and min width, height HOT 6
- Ability to select a circle area instead of rectangle HOT 1
- Add option to disable to resize the rectangle HOT 1
- Firefox issue: Invalid LatLng object: (NaN, NaN) HOT 3
- Line no 44 error HOT 5
- README jsfiddle cloudmade tiles no longer work
- IE9 area selector shows up beneath tile layer HOT 1
- areaselect displayed below tile layer HOT 7
- npm : package.json HOT 2
- New feature with "getDimensions" Function HOT 1
- Overlapped or not fully covered shade in the interface HOT 8
- Lng is wrong in certain parts of the world HOT 2
- Releasing a version HOT 3
- Angular problem HOT 2
- Issue sometimes while resizing
- Wrong mouse cursor in shaded areas
- Update demo URL
- What's 'getBBoxCoordinates' for? HOT 2
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 leaflet-areaselect.