Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m unsure

Creating Transformation without online Map Transformation Calculator

Can somebody point me in the right direction as to how I should create a Transformation instance (given lat., long, x, y and zoom) without having to resort to the online calculator?
1 person has
this question
+1
Reply
  • RandomEtc (Tween Branch Maintainer) March 04, 2009 06:32
    Hi Shane,

    The calculator uses javascript which should be very easy to port to actionscript - it's just not something we've done yet.

    You can see how to use the linearSolution function to create a Transformation object in the javascript port: http://modestmaps.mapstraction.com/tr... or python port if you prefer: http://modestmaps.mapstraction.com/tr...

    Unless your map uses linear projections, then going from lat lon to x y isn't possible using this method. You also need to figure out how to transform from lat lon to tile coordinates. But these methods should get you started.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. happy, confident, thankful, excited sad, anxious, confused, frustrated kidding, amused, unsure, silly indifferent, undecided, unconcerned