ACTransitMapProvider Tutorial / Coordinates in getTileUrl() are NaN
Hello,
I've been trying to recreate the ACTransitMapProvider-tutorial with my own map-tiles, but the application doesn't seem to find the files.
I was able track the problem down to the function "getTileUrl()" in AbstractZoomifyMapProvider.as—the variable "coord", that is being pushed into this function remains NaN.
Any advice would be highly appreciated—
trice
I've been trying to recreate the ACTransitMapProvider-tutorial with my own map-tiles, but the application doesn't seem to find the files.
I was able track the problem down to the function "getTileUrl()" in AbstractZoomifyMapProvider.as—the variable "coord", that is being pushed into this function remains NaN.
Any advice would be highly appreciated—
trice
4
people have 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?Okay, I've found the problem:
The tutorial ( http://modestmaps.com/tutorial-actran... ) doesn't mention that you've to either resize the stage of the modified file or adjust the line
"container.map.init(800, 600, true, new ACTransitMapProvider());" to
"container.map.init(900, 500, true, new ACTransitMapProvider());"
according to your stage size.
—trice
1 person says
this solves the problem
-
Inappropriate?hi, i'm having this problem too, i changed the container.map.init line to have the same dimensions as the stage but im still getting a whole bunch of NaN errors. any help would be appreciated, cheers, jai.
-
Inappropriate?It sounds like you're using the as2 version, which I'm not overly familiar with, but you could try calling map.setCenterZoom and see if that helps?
Loading Profile...





EMPLOYEE