Git Product home page Git Product logo

modestmaps-as3's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

modestmaps-as3's Issues

Map Extents do not seem to work

I've tried setting up a map with each of the providers, while providing map extents, but the map seems to be pan-able outside of the set extent. Using the code from ModestMapsSample.as

map = new TweenMap(stage.stageWidth - 2 * PADDING, stage.stageHeight - 2 * PADDING,
true,
new MicrosoftRoadMapProvider(),
new MapExtent(37.829853, 37.700121, -122.212601, -122.514725));

You can pan this map around and are not restricted to the map's extent.

setting map.grid.enforceBoundsEnabled also seems to have no effect.

Distance.approxDistance returns NaN when start and end are same

I would expect that the distance produced by the approxDistance method in com.modestmaps.extras.Distance would return 0 and not NaN when the start and end parameters are the same.

Adding a check and return to com.modestmaps.extras.Distance:34 would do the trick:

if (a1 == a2 && b1 == b2) { return 0; }

Fixed Map Boundaries

Hello,
Is it possible to somehow fix the boundary of the map that we want to use, based on topleft, topright, bottomleft and bottomright latitude, longitude points?

I did try extent property, but nothing happens using that.

This really helps in loading just one particular country's tiles and saves the load time.

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.