migurski / modestmaps-as3 Goto Github PK
View Code? Open in Web Editor NEWModest Maps actionscript3 port
Home Page: http://modestmaps.com
Modest Maps actionscript3 port
Home Page: http://modestmaps.com
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.
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; }
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.