Recent activity
Subscribe to this feed
shsyrjan replied on September 30, 2009 09:19 to the problem "Pan animation on the edge and locationPoint-function" in Modest Maps:
I was compiling from the ModestMaps-AS3-1.0-latest snapshot. In the morning I also tested with the SVN trunk and the same happened with that.
Setting enforceBounds to fixes the problem. But, I am using my own tiles to render quite small maps so I need the boundaries. I don't want the map to disappear from the screen...
I'm glad that you can take a look at this problem!
shsyrjan replied on September 29, 2009 15:36 to the problem "Pan animation on the edge and locationPoint-function" in Modest Maps:
I investigated the problem a bit further.
The bounds of the worldMatrix of the tile grid are enfoced only in its onRender function. When I pan, tweening function seems to set the grid.tx (or ty), before my rendering code is called. As the tweening engine does not care about bounds, the values of the worldMatrix are incorrect when I call the locationPoint in my code. I put the enforceBounds() to set tx (or ty) in the TileGrid and the problem was gone. But I think this is propably not the proper solution...
shsyrjan reported a problem in Modest Maps on September 29, 2009 11:09:
Pan animation on the edge and locationPoint-functionWhen I pan or pan+zoom on the edge, the locationPoint-function gives incorrect values. On the edge, the map tries to pan outside of the boundaries of the map. pointLocation-function gives values as if the map was actually panned outside of the map, but the map itself stays inside the boundary.
CASE:
I have some stuff laid out on the modest map that has latitude and longitude properties and I use the locationPoint to position it. But when I pan on the edge, the stuff I have slides out of bounds with the animation while the map itself stays still.
Edit: had pointLocation instead of locationPoint... as I am converting locations to screen points.
Loading Profile...
