How to create a huge interactive map?

Hello everybody
I've started learning Flash two weeks ago and I have the challenge of creating an interactive political map with about 4000 cities. Some cities will have more than 600 lines defining their limits which will make this project very demanding on processing.
People will be able to zoom in/out, select cities and see information about them.
As a starting point, I've begun working with 500 cities. I've imported a vectorial drawing of these cities and converted each one of them to symbols using flash javascript, resulting of course in 500 symbols. I don't know if it was a good way of starting this project but worked for me. Then my problems begun.
First I tried to use the mouse roll over and roll out events to change the (fill) color of cities but the city limits (stroke) changed also.
Second I want to add some properties to the cities such as city code, name, etc. but I wasn't able to do that using class inheritance. Would I have to create a different City class for every symbol I would like to extend? This approach looks like a lot of headache and redundant work.
Finally my question is should I start all over again and change my approach? If yes, how? If no, how can I solve those two problems?
Thanks

can't answer everything but I find this project very ambitious for someone with 2 weeks experience. I give you credit for trying.
as for the color changes, in each city symbol you need to have a separate "fill" symbol so that you can change the color of the fill and not the stroke.
also this link will help you understand the concept and confusion of target, currentTarget, mouse_over vs roll_over:
http://www.wastedpotential.com/?p=10
if each of your mc's is using a City.as class, that should work fine for giving each city the same properties. No need to create 500 different classes. I'm not an OOP expert but I know what you are trying is very possible and should be straight-forward.
Get Colin Moock's Essential ActionScript 3.0 and Shrupe's Learning ActionScript 3.0 for a crash course on implementing something like this.

Similar Messages

  • How to create a more interactive map with DW hotspot tool

    Hi - I've been asked to put together a map for my client.  I want to avoid getting into GMaps and all of that and just want to make a simple one myself.  Here's an explanation of what I'm trying to do:
    http://designerandpublisher.com/montrose/map.html
    Just trying to create a simple map like you see above so that if they clicked on a state or a point in the state, a little pop-up window comes on like you see in many interactive map applications.  Can someone help me figure out how to do this with DW's hotspot tool?  I'm terrible with code but I do know it would probably start with something like onclick (I think that's what it is).  But even if I get that onclick code working, I'm not even sure how to incorporate it into the <map> code that DW makes for the hotspot.
    Any help is appreciated.  Thanks.
    PS - I use DW4 and also have access to 5.5 on another computer.

    Here's another way you could do it but wil get very long. Also consider Kens tooltip - probably the easiest if you don't want a 'close button'
    <!DOCTYPE HTML PUBLIC">
    <html>
    <head>
    <meta http-equiv="charset=UTF-8">
    <title>Map</title>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <style>
    #map {
        width: 550px;
        height: 390px;
        margin: 0 auto;
        position: relative;
    #nevada {
    position: absolute;
    top: 150px;
    left: 50px;
    background-color:#FFC;
    padding: 15px;
    display: none;
    #nevada {
    position: absolute;
    top: 100px;
    left: 50px;
    background-color:#FFC;
    padding: 15px;
    display: none;
    .close {
        position: absolute;
        display: inline-block;
        background-color:#903;
        color: #fff;
        text-decoration: none;
        padding: 6px;
        right: 0;
        top: 0;
    h2 {
        margin: 0;
        padding: 0;
    p {margin: 0;
    padding: 0;
    </style>
    <script>
    $(document).ready(function() {
    $('.hide').hide();
    $('.newMexico').click(function() {
    $('#newMexico').show();
    $('.nevada').click(function() {
    $('#nevada').show();
    $('.close').click(function() {
    $('.hide').hide();
    </script>
    </head>
    <body>
    <div id="map">
    <!-- New Mexico -->
    <div class="hide" id="newMexico">
    <a href="#" class="close">X</a>
    <h2>New Mexico</h2>
    <p>Some content about New Mexico</p>
    </div>
    <!-- New Mexico -->
    <div class="hide" id="nevada">
    <a href="#" class="close">X</a>
    <h2>Nevada</h2>
    <p>Some content about Nevada</p>
    </div>
    <img src="map.png" width="550" height="390" border="0" usemap="#Map">
    <map name="Map">
    <area shape="poly" coords="157,176,216,183,213,246,173,241,159,244,158,249,147,247,156,177" class="newMexico" href="#">
    <area shape="poly" coords="64,91,118,105,105,180,99,176,96,190,52,131,64,92" class="nevada" href="#">
    </map>
    </div>
    </body>
    </html>

  • How to create table in interactive form via Java Web Dynpro

    Hi,
    How to create table in interactive form via Java Web Dynpro ?
    Any online tutorial / example ?
    Thank you.
    Regards,
    Eric

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • How to create an occupancy grid map

    I am using a LIDAR sensor (URG-04LX) to map an environment for DaNI 1.0 in LabVIEW Robotics 2010 module.  I want to create an occupancy grid map of the environment to use for path planning purposes. Can anyone provide me with any assistance. I have looked at the examples for path planning using the A* technique on an occupancy grid but I don't understand how to create the occupancy map.

    ... everyone above as told you how to create and LABVIEW occupancy map.... using an occupancy map.
    The labview VI assumes you know exactly what the envrioment is like. Meaning you pretty much have some representation of the enviroment.
    What you want to know is how do I generate and occupancy map using a laserscanner. For this you would need something called SLAM. Simultaneous localisation and Mapping. In order generate an occupancy map you need to continously localise your system so you can map laser measurements with refference to a fixed refferece frame, you then have to localise with respect to your map and repeat. This is non-trivial !
    unfortuently there is no LabviewVi to do this for you, and there is not much working example code. So honestly if you want to do this, i would use a robotic development framework call ROS and using gmapping (which is a SLAM package). Alternatively if you inist on using labview you could create a dll of the gmapping (open source libary) and call it from labview, Our you could try to implement it from scratch yourself....
    I just wish it was easier to use opensource libaries like pcl,opencv and integrate with textbased langauges using a labview system... it would make labview so much better, but labview robotics i feels is not really a good robotic application framework comapared to alternatives like ROS which have much bigger communities and much more modules of code you can use... escpecially for SLAM 
    https://decibel.ni.com/content/docs/DOC-22790 this is the best i have managed to find ( they do implement SLAM for this) 
    http://www.ros.org/wiki/gmapping

  • How to create mass users and map them to existing  hrms users

    Hi,
    Im running oracle ebusiness suite 12i . I want to create mass users , and map them to existing hrms users.
    The users I want to create exist in an excel spreadsheet with the columns employee id, user name. They will all be granted the same responsibility. I want to map them to existing hrms users using the employee id key.
    I have read about the package FND_USER_PKG.CREATEUSER and I can loop over it by using sql loader to create a temporary table, but I m lost on how to automatically map them to hrms users as part of the script.
    Any help.
    dula

    Thanks a lot Omka,
    I managed to create the users by running the script:
    declare
    Cursor C1 is
    select d.product_code,b.responsibility_key from FND_USER_RESP_GROUPS_ALL a,fnd_responsibility b,fnd_user c,fnd_application d
    where a.user_id = c.user_id
    and a.responsibility_id = b.responsibility_id
    and b.application_id = d.application_id
    and c.user_name ='JOCHIENG';
    Cursor employee is
    SELECT EMPLOYEE_ID,EMPLOYEE_NAME from eldoret_final;
    BEGIN
    for e in employee loop
    fnd_user_pkg.createuser
    x_user_name => e.EMPLOYEE_NAME
    *,x_owner => ''*
    *,x_unencrypted_password => 'welcome123'*
    *,x_start_date => SYSDATE - 10*
    *,x_end_date => NULL*
    *,x_description => 'CBK Employee'*
    *,X_EMPLOYEE_ID => e.EMPLOYEE_ID*
    fnd_user_pkg.addresp(upper (e.EMPLOYEE_NAME),'PER', 'CBK_EMPLOYEE_DIRECT_ACCESS','STANDARD', 'DESCRIPTION', sysdate, null);
    end loop;
    commit;
    end;
    I had first created the user JOCHIENG and assigned it the responsibility for Self service. So the script just assigns the responsibilities by copying from the one assgined to this user.
    Everything seems ok. However, when trying to log in as the new user, the login error: Login failed. Please verify your login information or contact the system administrator.
    is returned. But I can reset the password using the forms under Security > Define. Even with the correct password, the login doesn't go through.
    Any idea?
    dula

  • How to create substyles in Oracle Maps?

    Hi, is there any way to create substyles in Oracle Maps? I would like to create a style as described in the User's Guide for Oracle MapViewer, 3.1.12 Map Request Using Advanced Styles and Rendering Rules. This example uses a substyle element nested inside the style element.
    I use MVThemeBasedFOI.addStyle to add a style to my request and MVThemeBasedFOI.setRenderingStyle to set the style for the theme. However, there's no setRenderingSubstyle or something like that.
    I use Oracle 10.2.0.3.0, OC4J 10.1.3.5.0, MapViewer 10.1.3.3, and would like to create an Oracle Maps application. Thanks in advance.
    Regards,
    Markus

    I don't have a version 8i (now desupported) database around to look, but to create a schema in oracle databases you create a user.
    So... create yourself a new user and you've created a schema automatically.
    ;)

  • How to create a digital interactive magazine for HTML5

    Hi everybody! I am very new to the inDesign program and have been looking online all day trying to find a solution for us. I want to create and publish a digital interactive magazine for the web using an .indd file. I am wanting to add audio and video that people can click on while flipping through the digital magazine. It has to be html5 based and I can't seem to find a solution for what we need. I have been trying to export an interactive pdf but it never seems to play the audio. I use the media panel to import my audio and link it using the buttons and forms panel.
    Im sorry if this is just another repost that you have seen but I truly can't find an answer to my problem. any help would be great!
    Joe C.

    I've always thought of InDesign as a tool for print design (which gets squeezed into other uses, and has some add ons in that area). It seems to me that you want an app targeted at HTML5 design.

  • How to create table with list/map value binding

    I need to display few values in a tabular format. Is it possible to create adf table without having value binding to a VO object. Can I make a table with some list/map combination.
    I want to change the display format with minimum change in the application. Hence I am looking for a change to define a list/map and map it with the table.
    Following is the structure I need to display in.
    |     |Header1|Header2 |     
    |_______|_______|_______|
    |Txt R1 |value 1 |Value 2 |     
    |_______|_______|_______|
    |Txt R2 |Value 3 |value 4 |     
    |_______|_______|_______|
    All the views does not have any relation. Hence I should not create a VO and adding rows of the VO object.
    Edited by: Jaykishan on Jun 10, 2011 11:34 AM

    Yes, you can do it. Create a pojo with the properties(column) you want to display in the table and create a list with the instances of pojos and then you can populate your table using the list.
    Sample:
    //POJO
    public class SamplePojo {
    private String col1;
    private String col2;
    public SamplePojo(String col1, String col2){
      this.col1 = col1;
      this.col2 = col2;
    //add setter and getter methods
    //Inside bean, prepare a list with pojo instances (Assume a getter exists for pojoList)
    pojoList = new ArrayList();
    pojoList .add(new SamplePojo("Value1", "Value2");
    pojoList .add(new SamplePojo("Value3", "Value4");
    etc.
    //Inside jspx
    <af:table value="#{<Bean>.pojoList}" var="pojo" ...>
       <af:column headerText="Header1" ..>
         <af:outputText value="#{pojo.col1}"/>
       <af:column>
       <af:column headerText="Header2" ..>
         <af:outputText value="#{pojo.col2}"/>
       <af:column>
    </af:table>HTH
    Sireesha

  • DropDown - Input Field: How to create dependencies in Interactive Form

    Please look at the other post, it has been duplicated...
    Regards,
    Frank
    Edited by: Frank Wendel on Aug 26, 2008 4:02 PM

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • How to create links above interactive content?

    I want to have a movie or a slide show, with a texthyperlink above it while the movie running, have tried with combinations of superoverlays, as a button and as a hyperlink.
    Is there a workaround or have i missed something?

    a button like this works for me (translate into your language)
    —Johannes

  • How to create a Dynamic IAF in WD

    Dear all,
    We'd like to create a dynamic interactive form based on a XDP in a WebDynpro application. How can we achieve this?
    We tried to use setDynamicPDF() and setInteractive(), but it looks like ADS doesn't create a dynamic pdf.
    Only the master page is being displayed.
    Any ideas how to create a dynamic interactive form via ADS and how to determine if the pdf is a dynamic interactive form (in the browser).
    Kind regards,
    Noël
    version info: Designer 7, NW SP15, Reader 7.0.7.

    Hello,
    Use the following code to get a dynamic pdf document created in your <b>wdDoModifyView()</b> method. Make use of the firstTime flag there if required :
    <b>IWDInteractiveForm iForm =
    (IWDInteractiveForm)view.getElement("InteractiveForm1");
    iForm.setDynamicPDF(true);</b>
    setDynamicPDF(boolean) nmethod has been deprecated in 04. Moving forward to 04s, you will have a different set of APIs to deal with such requirements. Hence the abiove mentioned method will be taken off with the next major release of NetWeaver.
    <b>How do you know whether the pdf document created is static or dynamic ?</b> Well, save the form locally and open it in the designer. Go to File > Form Properties > <b>Compatibility</b> Tab. Check your <b>Form Type</b> there.
    Best Regards,
    Krish

  • How to create table and digital signature ?

    Hello,
    I would like to ask two questions regarding SAP interactive forms by adobe.
    1st question:
    How to create table in interactive form?
    Table that i can add rows and column and will show it in the form.
    Example the rows and columns that i want:
    <u><b>ID:</b></u>                <b><u>Name:  </u>  </b>               <u><b>DOB:</b></u>
    1                  Jack                      01/02/80
    2                  Ivy                         10/12/82
    2nd question:
    How to create digital signature ?
    I'm creating a adobe forms which need employee to sign on the form. I use signature field at my form. However, i don't know how to create a new signature and insert in the signature field.
    Can any one provide the answer with step by step guide?
    Thanks a lot

    Hi Pradeepa,
    you said you have your digital signature in
    BMP format? That means Bitmap and would mean you are actually talking about a picture! THIS IS NOT A DIGITAL SIGNATURE!
    A digital signature is a cryptographic key (aka public key cryptography) that is used to digitally sign a document, or at least a hash value derived from the document. Digitally signing means, applying the key in a well defined way (this is the algorithm used) to the document or hash value. You do this with your private key and the receiver of the document can then use your public key (which you can distribute in any way you want, even unsecure) to unencrypt the hash value. If this succeeds the receiver knows that the document was signed by you.
    This is because both keys are mathematically related in such a way, that what one key encrypted can only be decrypted by the corresponding other key and by no other key. You even can´t decrypt a document with the same key it was encrypted with, this is the difference to symmetric encryption - please have a look at help.sap.com and search for digital signatures.
    The named formats (afs, pfx and p12) are ways of coding the key, together with information about your person, such as email address and information about validity of the key into a
    certificate. This type of certificate is then called a x.509 certificate and is the same you might have seen when connecting to a secure webserver such as the one of your bank website. 
    Signing a form with such a certificate provides for mathematically and therefore business related proove of a users identity.
    In case you are really using a bitmap, this cannot work and would not serve you any good.
    Ask yourself this question: I want to make sure that the form was signed by a specific person. How can I make sure that the signing can only be done by the person pretending to have done so?
    A bitmap contains a picture, probably of the persons handwritten signature. How can I make sure that this picture was NOT recreated in MS Paint or Photoshop by someone else?
    The answer is:
    you can't! Therefore this way of prooving identity is useless. 
    You need to provide your users with digital signatures, put these in the certificate cache of your IE.  If a user then clicks on the signing field, the private key is used to digitally sign the form - create a hash value of the form and encrypt it with the private key. After the form is send back to the server or you, you use the corresponding public key to decrypt the hash value and, as said above, if this succeeds, identity of the signer is proven.
    THIS IS AN OVERSIMPLIFICATION! You might want to take a look at Adobe Reader Credentials.
    Regards,
       Christian

  • How to create interactive map in SAP Visual Business using SAP UI5 SDK

    Hi,
    Please tell me,
    How to create interactive map in SAP Visual Business using SAP UI5 SDK.
    Is it possible to create interactive map using VB Control in SAP UI5 SDK..?
    if possible please any one let me know.

    Hi folks, one question:
    We have our development close moved and now it is earlier than originally planned. 
    That means that we maybe can't finish our convenient API and you have to wait till we will release it - early 2015 is planned.
    But there is another option:
    Currently we have a API based on json. The developer has to create json and  to transfer it to the Visual Business control.
    This interface is more used as a low level API and we are developing on top the more convenient one. So all the features are the same.
    It will stay stable & compatible in the future and you can build on it.
    Do you want to use this interface?  
    Then I will publish the documentation.
    Let me know.
    Thanks

  • How do I create an interactive map?

    How do I create an interactive map using digital publishing suite in InDesign? Basically it's an amusement park map and when you click on a button I want a description page of a ride to show that has interactivity on it and then it can be closed and another button on the map can be clicked to show another description page of a different ride. Is that possible?

    Use a multi state object. Depending upon how many point of interest you want on that map it can get pretty involved.

  • I am creating an aperture book from my photos. How do I change the default map provided in the theme to one of my choice e.g. satellite view?

    I am creating an aperture book from my photos. How do I change the default map provided in the theme to one of my choice e.g. satellite view?

    Kyle,
    Thanks for your response. To be clear, the way I am importing the PDF is by going to New in LiveCycle, and selecting Import a PDF document, and selecting Create and Interactive Form with Fixed Pages.
    I cannot change the forms or pages, as they are created by our local Board. In otherwords, I have tryed used the flowable content, and upon import, not only are the fonts slightly different, but all the important artwork (trade-related) is gone, and is not in the exact positions it was in. The forms must meet the standards to which they were approved by the regional board, and there are state-mandated forms as well.
    What surprises me is that you say this method of Fixed Content isn't used much any more. I would think that a lot of people would have PDF files they would wish to make into fillable, interactive forms without needing to reconstruct the entire document. Perhaps a company that has always done things on paper, and now wishes to use those exact same forms on the computer, with no deviations to looks so they can be printed and match up perfectly.
    I thought about using Acrobat's internal form creation system. However, some of these forms have sophisticated options and the calculation scripts and systems within LiveCycle are very useful. Not to mention that it has a much larger scalability, should we chose to utilize it.
    Any other suggestions? I am so confused why Adobe would force medium-quality import of a PDF, but be so incredibly flexible about every other option in their program.

Maybe you are looking for