Clickable areas on a picture (map) ?

Hi,
I have a map of a country on the left and a panel on the right.
I want to make the cities on the map clickable so that when a user clicks on one of them, the details of the city is displayed on the right panel.
1) How do i render certain areas of a picture (map) clickable ?
2) what about the interaction with the right panel ? how do i do that ?
Thanks for helping, i am a beginner.

From a very high-level, a solution could be:
Start with a Canvas control for your map.  We want this because a Canvas supports absolute positioning.
Set the map image to be the Canvas background: canvas.setStyle( "backgroundImage", urlToImage );
Use a Canvas for each clickable map city using cooridates (x,y) for absolute positioning over each city.
Set the data of each canvas-city to be the city name or some other identifier.
When you click on a canvas set an application variable of the city name/identifier using a "click" event listener.
Bind the right panel's display to the "current city" application variable.
Is that what you were looking for?

Similar Messages

  • My phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    my phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    No, that would probably be the orientation lock. Check up by the battery icon and see if you have an icon with a small lock and a circular arrow. Either way, go to the Control Center, swiping up from the bottom of the screen. Look at the top row of icons and the orientation lock is the last one on the right. White is on, black is off. Just turn it off and you should be alright. Understand there are some apps that do not change into the landscape mode from portrait.

  • Resizing a buttons clickable area

    Good day gentlemen,
    I am trying to make a brain anatomy game in flash CS3 and I am having some difficulty getting the buttons to respect certain proportions. Allow me to elaborate.
    I start with a picture like this one:
    [IMG]http://i38.tinypic.com/2a9dv7n.jpg[/IMG]
    http://tinypic.com/m/beu5uq/2
    And then I bring it into photoshop and make a different layer for each different structure (in the screenshot I only did it for one structure but you get the point)
    [IMG]http://i37.tinypic.com/s2fpq9.jpg[/IMG]
    http://tinypic.com/m/beu5xy/2
    Now what I would like to do is import my .psd file into flash and make every layer a different button. But I don't know of a way to view layers of a .psd file in flash. But here's the bigger problem. As you can see, it makes the "clickable" area for the button a rectangle shape.
    [IMG]http://i36.tinypic.com/x52mar.jpg[/IMG]
    http://tinypic.com/m/beu621/2
    Whereas I would like for it to be the shape of the specific structure. If the clickable area is a rectangle then there is an overlap onto other structures which is not at all ideal. Especially when I get into smaller structures. What I want is for the button to be exactly like the layer in photoshop. Does anyone know how to accomplish this?

    I really want to thank skarthiks for responding. Here is the part I have a hard time with.  Your instructions were clear and nicely stated. But from what you are telling me there is no way for the imported layers to take on the shape they had in Photoshop?
    Here is the link to the video:
    http://www.screencast.com/users/canadian_hockey1/folders/Jing/media/1ac7b639-0272-4f80-9a1 0-91bf1622aa5d
    this is getting rather frustrating because it so simple. Again I want to thank everyone and anyone for responding. It's going to be a rather stupid error that's causing this.
    If you wish to try it yourself, I've uploaded the .psd file on rapidshare here
    http://rapidshare.com/files/414702909/figure_20_week_1.psd
    I really don't see where I'm going wrong. If you require more video/screenshots I will be happy to upload them for everyone

  • My iphone 4G has 1165 photos and NONE of them can be seen in the DCIM. None of my videos either. The folder is empty. Where the heck are all my pictures?

    With my old 3GS I could connect the phone and navigate to a folder that contained all my pictures and copy them off or view them. Now with my iphone 4G, I connect the phone, navigate to the DCIM folder and it's empty! WTH? Where are all my pictures? I hate having to use itunes because it's performamce is beyond terrible. It takes several minutes to even start and when I click on anything in itunes and I have to wait 20 seconds or more before it responds, then I can click on the next thing wait 20 seconds or more, and so on. Every other application I have is ripping fast. It's horrible. Is apple deliberately making this a giant pain!? Where are all my pictures and video?

    The DCIM folder is for your Camera Roll.  The pics synced from iTunes will not show up there, only pics taken with the iPhone.

  • Hi there, I pay for extra iCloud space online. However I cannot seem to find any of my photos or account? As my iPod/iPhone only hold 1000 pictures, where are the previous pictures? And how can I access them?

    Hi there, I pay for extra iCloud space online. However I cannot seem to find any of my photos or account? As my iPod/iPhone only hold 1000 pictures, where are the previous pictures? And how can I access them?

    You cannot use iCloud Storage to suppliment your iPad. They are mainly used to backup iPad.
    Free up space on iPad
    Settings>General>Usage>Storage>Delete what is not needed to free up space on iPad.

  • HT201302 When I am trying to import pictures from my iphone to PC, I get the message'No new pictures of videos were found on this device'. There are lots of pictures which i can see on the iphone. I have a 4S. Is there a way to get around that?

    When I am trying to import pictures from my iphone to PC, I get the message'No new pictures of videos were found on this device'. There are lots of pictures which i can see on the iphone. I have a 4S. Is there a way to get around that?

    It sounds like you are using an application to import. You can do it manually.
    Start > Computer (on the right) > scroll to the bottom and you will see your iPhone under Portable Devices > Open it and you will see a Drive, open that and there will be a DCIM folder. That is where your photos will be (There may be other folders each holding photos).

  • We have migrated data from virsa 4.0 to grc 10.1, all virsa mitigation approvers and controllers got migrated but we are not able to map new mitigation approver and controller to the mitigation ids.

    Hello All,
    We have migrated data from virsa 4.0 to grc 10.1, all virsa mitigation
    approvers and controllers got migrated but we are not able to map new
    mitigation approver and controller to the mitigation ids.
    The steps we have done below.
    1. We have created user id in su01 with necessary authorizations
    2. we have declared this user id in Access control owners as a
        mitigation approver and assigned to the organization unit
    Now we are trying to map to newly created mitigation approver to the
    mitigation id but we are not able to find that approver id for the mitigation ids. (only old mitigation ids came from VIRSA only we are able to see, not able to add new mitigation approvers / controllers to the mitigation ids)
    Kindly check this issue, this is very critical for us.
    Thanks in advance.
    Regards,
    Karunakar

    Hi Karunakar,
    - Assign Owners to Organization unit
    - Make these owners as Mitigation Approver and Monitor
    - Create Mitigation Id in this Org. unit
    Regards
    plaban

  • When I attempt to open iphoto, I get the loading icon in the working space/picture area.  If I try to reinstall ilife '11, will I lose any pictures?  Where, on the hard drive, are all my pictures actually stored?

    When I attempt to open iphoto, I get the loading icon in the working space/picture area.  If I try to reinstall ilife '11, will I lose any pictures?  Where, on the hard drive, are all my pictures actually stored?

    You won't lose anything because you have a back up, right?
    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • [SOLVED]dzen clickable areas

    I am using dzen as a status bar in DWM and I want to know how I get the clickable areas to work. I have looked over all the place and I am still confused. Also I am piping conky to dzen.
    Any help would be much appreciated.
    I solved my problem. It just took reading dzen's documentation some more.
    Last edited by xly15 (2012-11-30 21:33:11)

    I am using dzen as a status bar in DWM and I want to know how I get the clickable areas to work. I have looked over all the place and I am still confused. Also I am piping conky to dzen.
    Any help would be much appreciated.
    I solved my problem. It just took reading dzen's documentation some more.
    Last edited by xly15 (2012-11-30 21:33:11)

  • Are all the pictures in Events in the master photos?  Are they duplicates?

    Are all the pictures in Events in the master photos?  Are they duplicates? I need to clean up my events list.

    Here's how iPhoto works.
    Every Photo is in the Library. There are two ways of looking at the Library: Events View and Photos view. There is no duplication here. These are just two doors into the same room, as it were, two ways of showing you the exact same data.
    The Library contains your Master photos.
    Everything else: Albums, Smart Albums, Folders, Slideshows etc simply reference items in the Library. Again there is no duplication, just the same data viewed in different ways. So the photo you see in an Album is the same photo that's in the Event or Photos view of the Library.
    This is like iTunes. Every track is in the Library, each playlist just contains a link to the track.
    To delete from iPhoto: Drag the items from the Library (either Events or Photos View, doesn't matter) to the iPhoto Trash. Empty it, then empty the System Trash.

  • AREA TOOLS FOR IMAGE MAPPING TOOLS ARE MISSING (CC 2014.1.1)

    Hi guys,
    I am missing AREA TOOLS FOR IMAGE MAPS from version 2014.1.1. where can I switch them on please???
    I hove got this panel switched on, but tools are gone.
    Thank you
    Jan

    Switch to Design View (click the small triangle next to the Live View button), those options aren't available in the Live View Editor yet.

  • My albums show 342 pictures (80 hidden)  What does this mean and where are the other pictures?

    Iphoto album shows 342 pictures (80 hidden) in upper rt hand corner?  Where are the hidden pictures? and how add them back into the album?

    in iPhoto view menu ==> Click on Hidden
    LN

  • E2k10SP1 | Mails are backing up in MAPI Delivery queue - Restarting the transport service flushes the queue

    Hello,
    Need assistance on Transport issue.
    Setup:
    Windows 2008 R2
    Exchange 2010 SP1. Three member DAG and two HUB & CAS combined role servers configured with Hardware load balancer.
    Issue: Randomly some mails are getting stuck in MAPI delivery queue. Restarting Transport service for couple ot times, flushes the queues.
    Troubleshooting done so far
    1. Disabled  - TCP Chimney Offload, Receive Side Scaling (RSS).
    2. No DNS issue.
    3. EXBPA report is clear.
    Any help would be highly appreciated.
    Regards,
    Ghouse

    All are internal mails and 70 GB free space is there on the disk.
    If we dont clear the queue then after three days queue expires and sender receive below NDR.
    Delivery has failed to these recipients or groups:
     [email protected] 
    The server has tried to deliver this message, without success, and has stopped trying. Please try sending this message again. If the problem continues,
    contact your helpdesk.
     Diagnostic information for administrators:
     Generating server:
    [email protected]
     [email protected] 
    #550 4.4.7 QUEUE.Expired; message expired ##

  • The color of my screen is wrong.  All the blues are bronze and pictures look they are in negative form.

    I was wondering if anyone can help me.  Like I said I got on the computer yesterday and the color is all wrong.  Darks are light and lights are dark.  Pictures of people for example seem to be in a negative form like the old cameras before the film was developed.

    there are two solutions to this: the first (longer one) is if you open up System Preferences, go to Universal Access, and turn display from 'White on Black' to 'Black on White'.
    the easy way to do it is just press control + option + command (the three buttons to the left of the spacebar) and the number 8 all at the same time.

  • I have a problem. I updatet to 5.0 and then Itunes can not find the phone and on the screen on the phone there are only a picture of an usb cabel and a logo for Itunes.

    After updating Itunes can not find the phone and on the phone screen there are only a picture of an USBcabel and a Itunes logo. What can I do???

    Try this previous correctly answered discussion
    https://discussions.apple.com/message/11029862#11029862

Maybe you are looking for