A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Interactive Map, how?

  1. #1
    Design with an Accent
    Join Date
    Feb 2002
    Canary Islands, Spain

    Interactive Map, how?

    I would like to have a map that can do some of the following:

    zoom in/out
    navigate via drag or arrows
    possibly have option to show landmarks by clicking button

    I have figured out how to drag around with the help of a flash add on someone made, but it would be nice to have it stop at the boundaries of the map.

    I know you can zoom by right clicking, but it would be nice to have a visual guide to click on.

    I've seen toggles to turn on and off objects/layers, but don't know if this can be done in combination with the above.

    Is all of this too complex for Swish, or does anyone have any suggestions?

  2. #2
    Senior Member
    Join Date
    Oct 2002
    Nope... not with swish.

    The problem is that you'll need some pretty involved actionscript to keep the map within the borders at varying levels of zoom. I'm working on a project for a client of mine that is exactly what you are talking about (see a sample at http://www.jaycharlesdesign.com/fine...ballstonUV.htm )

    The theory behind it is that you have to be able to calculate the position of the map in relation to the edge of the mask. This is simple until you throw a zoom feature into the mix. When the map is scaled (the zoom works by enlarging and shrinking the map) the relationship of the center of the map to the edge of the mask changes.

    You'll also need some means of recentering the map when it is zoomed out... also a job for some involved actionscript.

    I guess the bottom line is that this isn't a job for the current version of Swish.

  3. #3
    Shhh! monkeypants's Avatar
    Join Date
    Aug 2000
    Just an update...

    That project has launched at http://www.commuterpage.com/art/villages
    "Rock-n-Roll is dead. These days it's all about bling bling...pinky ring" -Marky Mark

  4. #4
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Long time no see Jay

    Having an identity crisis?

  5. #5
    Shhh! monkeypants's Avatar
    Join Date
    Aug 2000
    Hi Frets,

    No identity chrisis (that was a few months ago ). When FK upgraded to the new forum version, I was one of the fortunate ones who's account was somewhat mangled. Got it fixed a while back
    "Rock-n-Roll is dead. These days it's all about bling bling...pinky ring" -Marky Mark

  6. #6
    N' then I might just
    Jump back on
    An' ride
    Like a cowboy
    Into the dawn
    ........To Montana.
    david petley's Avatar
    Join Date
    Jun 2000
    not in Montana
    hey Jay,
    good to see you posting...
    It's nice to see the map project, it is a nice bit o' work.

    No longer a Flashkit mod, not even by stealth

    Insanity is just a point of view. After all, the world looks pretty normal through your own underpants.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center