Giter Club home page Giter Club logo

Comments (6)

alfanhui avatar alfanhui commented on May 18, 2024

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.

lenis0012 avatar lenis0012 commented on May 18, 2024

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.

GregorySech avatar GregorySech commented on May 18, 2024

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.

raacker avatar raacker commented on May 18, 2024

@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?

image

Zooming out until 15000KM will no longer load maps and it's quite useless for normal usage :)

from flutter_map.

raacker avatar raacker commented on May 18, 2024

@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.

image

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 avatar GregorySech commented on May 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.