Comments (6)
That error looks like the centre MapOptions is not set. If you have your MapOptions arguments, this will help more, or try setting centre to LatLng coordinates.
The pan boundaries take LatLng coordinates at southwest and northeast boundaries, so setting them using degrees does not work (or make sense? )
from flutter_map.
Hi @alfanhui
Thanks for your response.
these are the options I am using
options: new MapOptions(
center: new LatLng(51.5, -0.09),
zoom: 2.0,
swPanBoundary: new LatLng(-90.0, -180.0),
nePanBoundary: new LatLng(90.0, 180.0),
),
from flutter_map.
Right now when using the package example zooming out does not cause an exception to be thrown but the map simply freezes and cannot be "zoomed in".
from flutter_map.
@GregorySech Did it actually freezed? After zooming out lots of times, I was still able to zoom in after bunch of zooming in... maybe we can prohibit zoom maximum at 8000KM or 15000KM?
Zooming out until 15000KM will no longer load maps and it's quite useless for normal usage :)
from flutter_map.
@GregorySech So far, I found that the exception is HttpException because scale is already too negative to get map image file. And when Zoom level is very close to 0, it's almost out of the whole map.
What about to stop zoom at this scale on above image by forcing zoom to be positive value? I mean never go negative.
from flutter_map.
@GregorySech Did it actually freezed? After zooming out lots of times, I was still able to zoom in after bunch of zooming in... maybe we can prohibit zoom maximum at 8000KM or 15000KM?
Zooming out until 15000KM will no longer load maps and it's quite useless for normal usage :)
Yeah, the map froze but the rest of the app was still usable. I literally just panned out on my phone and was unable to pan-in again.
Avoiding negative values might be the right move but its @johnpryan strategic decision.
from flutter_map.
Related Issues (20)
- [BUG] After Zoom, old tiles remain on screen along with new tiles, only disappearing after map gesture or rebuild. HOT 1
- [BUG] Bad performance in android web browser HOT 2
- [FEATURE] Add animated movement HOT 4
- [BUG] LatLngBounds does not account for angular wrapping
- [BUG] Polylines that are not near each other seems like they want to connect HOT 7
- [FEATURE] Add option to automatically retry missed tiles HOT 1
- [BUG] Compilation error after upgrade to v6.1.0 HOT 1
- [FEATURE] How to delete marker? HOT 1
- [FEATURE] The quality of the map is very low HOT 1
- iOS map drag return to the pin point HOT 1
- [FEATURE] When rotating the map, it is hoped that the label of the map will remain upright and consistent with the mobile native platform experience HOT 2
- [BUG] v7-beta: `Polyline` becomes distorted & invisible (but remains interactive) when zoomed far in HOT 14
- [BUG] Retina simulation not working on WMTS URL templates without {r} parameter in V7-beta HOT 5
- [kml support] <kml support> HOT 1
- [BUG] MapEventTap - Delay between touch and event HOT 1
- Add privacy manifest file for iOS HOT 2
- Dragging polygon/polyline
- [BUG (v7)] Dotted polyline throws exception: `Bad state: No element` HOT 1
- [BUG] v7-beta: polygon becomes distorted & invisible (but remains interactive) when zoomed far in HOT 1
- [BUG] map rotation is always possible on web even with InteractiveFlag set to InteractiveFlag.none 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 flutter_map.