Pan animation on the edge and locationPoint-function
When 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.
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.
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?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... -
Inappropriate?Thanks for the bug report. Can you confirm which version of Modest Maps you're using?
If it's actionscript 3 then a short term fix could be to set map.grid.enforceBounds to false - does that help?
Otherwise a few things need rearranging in the TileGrid so that bounds are enforced correctly before events are dispatched - I've added this issue to the google code issue tracker and hopefully someone will get to it in the next couple of weeks (probably me!) http://code.google.com/p/modestmaps/i...
I’m disappointed
-
Inappropriate?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!
Loading Profile...



EMPLOYEE