Creation of custom maps

Hi all

I would like to create a custom map (in jpeg format) with the (0,0) coordinates, in the middle of the map image. When the user hover your mouse on the map, contact details of the map where is the cursor will be displayed. Coordinates changes as the cursor moves.

It's something like the google map. But I would use my own card instead of the world map.

Any help is appreciated. ^^

Thank you. It was fun to write. I used a box, but a picture should work the same way. Simply put the code below into a new application and run...

Note: to make the Center 0, 0, then just a few mathematical functions by using the width and height of the image.


http://www.Adobe.com/2006/mxml"layout ="vertical ".
backgroundColor = "0xDDDDDD" >


Import mx.controls.Alert;

private void showMouseCoords (): void
{
If (false is mousePointer.visible)
{
mousePointer.visible = true;
}

mousePointer.x = stage.mouseX - mousePointer.width / 2;
mousePointer.y = stage.mouseY - mousePointer.height / 2;

mouseBoxCoordsLabel.text = "box: mouseX =" + myBox.mouseX + ", mouseY =" + myBox.mouseY; "" ""
mouseStageCoordsLabel.text = ' stage: mouseX = "+ stage.mouseX + ', mouseY =" + stage.mouseY; "" ""
}
]]>


backgroundColor = '0 x 008800' / >


Click = "Alert.Show (' mouseX =" + myBox.mouseX + ', mouseY = "+ myBox.mouseY);" / > "


Tags: Flex

Similar Questions

  • Creation of custom symbols - streets & trips

    Our office uses streets & trips to create custom cards with a key/legend. We tried to create symbols customized (in this case, the card numbers) using a number of techniques in Photoshop and Illustrator. Streets & trips will accept only Bmp files. If you create the numbers in Photoshop, they are too pixelated and badly the streets & trips. But you can't save or export as a BMP in Illustrator. Thus, we created the numbers in Illustrator, save them as jpg files, then convert BMP files in Photoshop. Numbers look fine until what import us them in Streets & Trips. Then, they become "mottled" - with clear areas bit from the bottom in the numbers. It's too random. The flecks are in locations on each issue, even if it's the same background for each file. Someone at - it a good solution for the creation of custom symbols that will work in the streets & trips?

    Hello

    Check with the streets and the support of the TRIPS Agreement and ask in their forum.

    Streets & Trips
    http://www.Microsoft.com/streets/en-us/default.aspx

    Streets & Trips - help and Support
    http://www.Microsoft.com/streets/en-us/support-and-training.aspx

    Streets and travel community
    http://www.Microsoft.com/streets/en-us/community-and-news.aspx

    Streets and travel Forum
    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    Support for MapPoint, streets & trips and Highway
    http://support.Microsoft.com/ph/851

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Custom maps can be imported into Mappoint?

    I have a COTS software that works with Mappoint to track vehicles, personnel, etc. I can get custom maps of a region in Asia. May be included or imported into Mappoint?

    Hello

    What operating system do you use?

    I suggest you to send your request from the link and check.

    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

  • Trouble FDMEE download of custom mapping model

    I am trying to create a classic download custom maps, similar to that used in "FDM", but can't seem to get FDMEE (updated 500) in order to treat it.  I can use the model as it is downloaded from FDMEE, but it's a complete mess.  I created a range named 'ups' exactly similar to the model downloaded "upsMAP" range... without success.  Anyone try this yet?

    I figured this out - the file must be at least of Excel 97 - 2003... My Excel was failing to Excel 95-97, and it was the cause of the failure.  Other than it's the same as classic... a new name of DataLoadRule column has been added.

  • Custom mapping

    Hi friends,

    IM currently practicing to charge custom building a mapping in informatica.

    To do this, initially,

    < Li > I created a custom folder in Repository Manager ETL

    < Li > import the source table and created a table target with Custom ETL folder in the designer

    I used three source tables

    a_product_types
    products
    product_attribs

    Created a table named testtarget.

    < Li > created a mapping n/b my source table and the target in the designer and recorded under the name of Custom ETL mapping in my Custom ETL himself file.

    < Li > as a next step creates the workflow in wf Manager named CustomETL in which I have included the above mapping in the worfklow.

    < Li > then as part of the record of the DAC, I created source system folders and defined the sources and targets under the task tables and also called the custom task in the CAD map.

    < Li > after I got the above created the task to the custom theme category.

    < Li > finally created an EP and added the SA custom, defined parameters built it and running in DAC.

    Thus the load fails with the following errors in the description of the State of the DAC as
    2012-12-28 17:49:58.375 INFORMATICA TASK:Custom ETL:Custom ETL:(Source : FULL Target : FULL) has started.
    
    
    
    ANOMALY INFO::: Error while executing : INFORMATICA TASK:Custom ETL:Custom ETL:(Source : FULL Target : FULL)
    MESSAGE:::
    Irrecoverable Error
    Request to start workflow : 'Custom ETL' has completed with error code 4
    Error Message : Usage error. You passed the wrong parameters to pmcmd.
    Command Used: pmcmd startworkflow -sv Oracle_BI_DW_Base_Integration_Services -d Domain_biserver -u Administrator -p ****  -f Custom ETL  -paramfile C:\Informatica\9.1.0\server\infa_shared\SrcFiles\\DataWarehouse.HEIS_TARGET.Custom ETL.Custom ETL.txt Custom ETL
    Workflow Message: 
    
    =====================================
    STD OUTPUT
    =====================================
    ERROR: Unexpected argument [-paramfile].
    Usage: pmcmd startworkflow
                               <<-service|-sv> service <-domain|-d> domain [<-timeout|-t> timeout]>
                               <<-user|-u> username|<-uservar|-uv> userEnvVar>
                               <<-password|-p> password|<-passwordvar|-pv> passwordEnvVar>
                               [<<-usersecuritydomain|-usd> usersecuritydomain|<-usersecuritydomainvar|-usdv> userSecuritydomainEnvVar>]
                               [<-folder|-f> folder]
                               [<-startfrom> taskInstancePath [<-recovery|-norecovery>]]
                               [<-paramfile> paramfile]
                               [<-localparamfile|-lpf> localparamfile]
                               [<-osprofile|-o> OSProfile] [-wait|-nowait]
                               [<-runinsname|-rin> runInsName] workflow
    
    =====================================
    ERROR OUTPUT
    =====================================
    
    EXCEPTION CLASS::: com.siebel.analytics.etl.etltask.IrrecoverableException
    
    com.siebel.analytics.etl.etltask.InformaticaTask.doExecute(InformaticaTask.java:183)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:411)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:307)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:214)
    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:586)
    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)
    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    java.util.concurrent.FutureTask.run(FutureTask.java:138)
    java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    java.util.concurrent.FutureTask.run(FutureTask.java:138)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    java.lang.Thread.run(Thread.java:619)
    
    (Number of retries : 1)
    
    pmcmd startworkflow -sv Oracle_BI_DW_Base_Integration_Services -d Domain_biserver -u Administrator -p ****  -f Custom ETL  -paramfile C:\Informatica\9.1.0\server\infa_shared\SrcFiles\\DataWarehouse.HEIS_TARGET.Custom ETL.Custom ETL.txt Custom ETL
    
    2012-12-28 17:50:07.609 INFORMATICA TASK:Custom ETL:Custom ETL:(Source : FULL Target : FULL) has finished execution with Failed status.
    What could be the problem with this simple custom load. IM missing action in this.

    Thank you

    Kind regards
    Saro

    Because the mapping is not indicated launched, you won't find the log of the session.

    You must update the file parameterfileOLTP.txt to the folder settings DAC.
    Just copy the existing source content and rename custom workflow again.

    Also, make sure that you keep session and the names of workflow are the same.

    Published by: Srini VIEREN on December 28, 2012 09:29

  • Creation of custom in iexpenses expense categories

    Hi gurus,

    To use the load model in I spend modules, I created the expense report model AP-> Configuration-> invoice-> expense report template.

    Here we have some predefined category of expenses such as accommodation, airfare, rental car, meals, mileage, various and Per Diem. Now, my need is that I have to create a custom category and must in this populist.

    Please let me with navigation how to achieve this.

    Thank you
    Vuvu.

    Hi Vladimir,.

    You can't have the expense categories USER-DEFINED, you must use predefined expense categories / seeds only.
    Seeded categories are stored in accounts payable OIE_EXPENSE_CATEGORY research that has the level of the access system, so we can't add/change the values of research more under him. (Navigation for the search is configured > research > Payables)
    In fact any type of expense that an organization can be mapped in seeded categories provided...
    I think that this restriction is due to the construction in the policy configuration validation based on the categories of expenditure.

    Oracle also claims, any changes made to the OIE_EXPENSE_CATEGORY would be considered as CUSTOMIZATION, this is why it would not be supported.
    See - [ID 784448.1] - cannot change the search system "OIE_EXPENSE_CATEGORY".

    Kind regards
    Ivruksha

  • Standards for the creation of custom Pages/Applications in Oracle eBS OFA

    Hello

    Have we not a document of standards/Steps for the creation of Pages CUSTOM OA Framework in Oracle eBS. I'm looking for something similar to the development of custom form in Oracle eBS.
    If so, please share the same.

    Waiting is, to have these standards, in order to ensure future versions of Oracle, supported the custom developed objects.

    Thanks in advance,

    Please see jdeveloper help documentation, framework.

    Kristofer Cruz

  • Creation of custom Menus

    What I see < netuix:singleLevelMenu > and < netuix:multiLevelMenu > are the only options available in the file .menu - and the skeleton jsp is resolved may be on the basis of < netuix: tagUsed >

    We have a requirement for the menu from a JSON file maintained externallly - this design allows the team of the company to change the menu without intervention of the development team. We have create a menu - framework/markup/menu/myCustomMenu.menu.

    But there is no documentation on how to do it. URL http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portals/develop_ui_lookfeel.html#wp1032617 provides only information about customizing the out-of-box singleLevel or multilevel menus.

    Ask your advice on how we can proceed with the creation of our custom menu?

    Thank you
    Prashanth

    In your custom menu file, specify the skeletonUri the path of the file JSP that you want to use to display the menu. Then take a look at the existing singlelevel or multilevel menu.jsp files of source code examples make everything what you want to do

    <>
    title = "Custom Menu" description = "e.g. menu."
    markupType = markupName "Menu" = 'CustomMenu' don't
    skeletonUri = "custom.jsp" > "

  • Creation of custom device

    I am trying to create a custom device that makes it easy for a user to configure many digital output channels. My camera is now Initializes in VeriStand without any problem. I have a hierarchical design with a folder "Output Module 1' containing 32 channels. I've added the output Mode (U16) properties and enable State (Boolean) for each channel. The problem is that I don't know how to set the values of these properties in the design of LabView. I tried to use the Set point property VI to write a new value for each property without a bit of luck. I tried different others live too, but none seem to set the value of the property. I get a response to change the values in the "front" page in VeriStand System Explorer, but when I click on a channel to look at properties, nothing has changed.

    I followed step by step custom device guide http://zone.ni.com/reference/en-XX/help/372846J-01/veristandmerge/cust_device_overview/ of OR.

    My hunch is that my lack of familiarity with the node pointers cause me problem. Does anyone have an idea about this problem?

    Hi MitchD319,

    If I understand your question, the following resource should be helpful:

    Adding the element of custom device properties

    http://zone.NI.com/reference/en-XX/help/372846J-01/veristandmerge/adding_cd_properties/

  • Regarding UDP Rx. custom map FPGA for PC

    Dear Sir.

    We are not able to receive the data in LabVIEW which is captured in WireShark. We pass the FPGA card data to PC. Here we use the UDP protocol.

    We follow the procedure below to send and receive data :

    1. Side map FPGA:

      1. We get the PC ARP request.
      2. Then, we give the answer ARP for PC.
      3. Then, we receive a PC UDP packet.
      4. After that, we send a UDP packet to PC.

    We monitor all frames with WireShark Analyzer.

    Let me know the solution and fill in the gap.

    Thank you best regards &,.

    Chick S

    The only thing I see is I think you mixed up of your ports. Looking at your OCAP paper, it seems that the FPGA (10.1.8.121) sends to the destination port 1234, but your VI of receiver UDP listening on port 1200. However, if you change the receiver port on the VI of UDP Rx, you get an error: I don't know if you will be allowed to open the same port twice (once in the TX, once in the RX). If this is the case, you must move the two functions in the same VI so that they use the same refnum UDP.

  • Problems of creation of custom buttons

    Hello, I'm trying to create three custom buttons here in my application's main window.  I did a CustomButtonField class to try to change around the colors and size, but when I run my application no buttons appear in my application?  What I am doing wrong?

    Help, please.

    The main window class.

    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.FontFamily;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Background;
    import net.rim.device.api.ui.decor.BackgroundFactory;
    
    public class MainPage_Recipes extends MainScreen
    {
    
        private VerticalFieldManager _manager ;
        CustomButtonField findButton;
        CustomButtonField submitButton;
        CustomButtonField aboutButton;
    
        public MainPage_Recipes()
        {
    
            try
            {
    
                 FontFamily Global = FontFamily.forName("BBGlobal Serif");
                 Font appFont = Global.getFont(Font.PLAIN, 8, Ui.UNITS_pt);
                 setFont(appFont);
    
                 Bitmap labelImage =  Bitmap.getBitmapResource("chef2.png");
    
                 add(new CustomLabelField ("Find A Recipe", Color.WHITE, 0xff0000, labelImage, Field.USE_ALL_WIDTH));
    
                 _manager = (VerticalFieldManager)getMainManager();
    
                 Background bg = BackgroundFactory.createSolidBackground(0x00DDDDDD);
                 _manager.setBackground(bg);
    
                 FieldChangeListener findCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            findRecipe find = new findRecipe();
                            UiApplication.getUiApplication().pushScreen(find);
                        }
                    };
                 FieldChangeListener submitCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            submitRecipe submit = new submitRecipe();
                            UiApplication.getUiApplication().pushScreen(submit);
                        }
                    };
                 FieldChangeListener aboutCan = new FieldChangeListener()
                    {
                        public void fieldChanged(Field field, int context)
                        {
                            aboutApp about = new aboutApp();
                            UiApplication.getUiApplication().pushScreen(about);
                        }
                    };
    
                 findButton = new CustomButtonField(" Find Recipe ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 findButton.setChangeListener(findCan);
                 submitButton = new CustomButtonField(" Submit Recipe ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 submitButton.setChangeListener(submitCan);
                 aboutButton = new CustomButtonField(" About ", Color.WHITE, Color.BLACK, Field.FIELD_HCENTER);
                 aboutButton.setChangeListener(aboutCan);
    
                 _manager.add(findButton);
                 _manager.add(submitButton);
                 _manager.add(aboutButton);
    
                 add(_manager);
    
            }
            catch(Exception e)
            {
    
            }
        }
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
            menu.add(_cancel);
    
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
    
                Dialog.alert("Goodbye!");
    
                System.exit(0);
    
            }
        };
        private MenuItem _cancel = new MenuItem("Cancel", 110, 10)
        {
            public void run()
            {
    
            }
        };
    
    }
    

    Class CustomButtonField:

    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Graphics;
    
    public class CustomButtonField extends Field
    {
        private String label;
        private int backgroundColor;
        private int foregroundColor;
    
        public CustomButtonField(String label, int foregroundColor,
                int backgroundColor, long style)
        {
            super(style);
            this.label = label;
            this.foregroundColor = foregroundColor;
            this.backgroundColor = backgroundColor;
    
        }
        public int getPreferredHeight()
        {
            return getFont().getHeight() + 8;
        }
    
        public int getPrefferedWidth()
        {
            return getFont().getAdvance(label) + 8;
        }
    
        protected void layout(int width, int height)
        {
            setExtent(Math.min(width, getPreferredWidth()), Math.min
                    (height, getPreferredHeight()));
    
        }
        protected void paint(Graphics graphics)
        {
            graphics.setColor(backgroundColor);
            graphics.fillRoundRect(1, 1, getWidth()-2, getHeight()-2, 12, 12);
            graphics.setColor(foregroundColor);
            graphics.drawText(label, 4, 4);
        }
        public boolean isFocusable()
        {
            return true;
        }
    }
    

    Help, please.

    Thank you

    Scientist

    Hi, I discovered very pblm is

    This.getPrefferedWidth usage and height, I think you will get it.

    protected void layout(int width, int height)     {     // TODO Auto-generated method stub        this.setExtent(this.getPrefferedWidth(),this.getPreferredHeight());   }
    

    Concerning

    Rakesh Shankar.P

  • Muse custom maps

    Hi there, anyone have recommendations for the best way / more easy way to create a personalized card. Last year, I created one with cartodb and card box... which was great but card box has suddenly got very complicated and therefore more difficult to use even with the widget of themes of muse. I don't want a google brand card. Thanks in advance.

    I solved this problem by going to the box of the card and using the old map editor to design the plan, and then paste the code generated in the box "insert html" html object

  • creation of custom in the Complutense University of MADRID component

    Hi all

    I'm a newbie in the Complutense University of MADRID. I need to created a component custom that will insert and update the record in the table of the Complutense University of MADRID. How to do this? I can't find any example on google.

    its urgent assistance please.

    Check the samples component how-to for Oracle UCM 11g | Bex Huff

    There is a single component, DataAccess, that shows exactly how.

  • Required document on the creation of custom workflow.

    Is there a document describing how to create a new workflow completely? I also want to know the stuff build us a workflow customized with several levels of approval in the ERP?

    Hello

    Thanks for the link to the document. Well let me know is possible to create a workflow with 6 levels of approval. Pls suggest.

    Yes, it is possible to do. Approval levels depending on the design of your workflow and of your business needs, there is no specific limit to the number of approval levels.

    Kind regards
    Ousseni

  • Creation of customer order IN.

    Hello

    Please let me know if there is any functionality of oracle standard by which we can ensure that purchase order contains no elements of customer orders. for example if there are several command so a PO must be generated for each order.

    At the time of the application to import, you can specify parameters such as

    1. the buyer
    2 category
    3 point +.
    4 location
    5. the seller
    There are no parameters as command, so we'll end up creating a PR of multiple customer orders and then PO would be created of PRs.

    Let me know if we can achieve the functionality to create unique IN. for each sales order.

    Thank you

    If you have different providers for items in a sales order, you can create different POs.

    Assuming that all elements are going to the same vendor, you can consider a simple customization as follows
    Write a trigger before insert on the po_requisition_lines_interface and do the requisition_number or even the group_code of all items on a sales order.
    That will make the import of requisition program put all these lines on a request.

    Hope this helps,
    Sandeep Gandhi

Maybe you are looking for

  • HP Pavilion dv6-6c40us: change the processor of amd HP Pavilion dv6-6c40us PC notebook

    Hi, I need to know if I can change my laptop HP Pavilion dv6-6c40us Notebook PC processor roduct Specifications: Product name: dv6-6c40us US product number: A6Y50UA Microprocessor: 2.5GHz/1.6GHz VISION technology A8 from AMD with AMD Quad - Core A8 -

  • HP Pavilion dv4 2141nr wireless network connection problems

    Machine will connect to the wireless network, but not connect to internet. Have restarted, hard-rebooted and uninstalled/reinstalled all the drivers for network card. Any help is welcome!  Thanks in advance.

  • Runtime error! Program: C:\windows\LIVING-1. SCR

    ASK FOR HELP WITH THE EXECUTION ERROR Recently, I received an error message on a frequent basis.  It's: Runtime Error!  Program: C:\windows\LIVING-1. SCR this application has requested the execution to terminate in an unusual way.  The section on Sta

  • Parental controls does not-webaccess all refused

    I set up parental controls in windows for my administrator accounts. They worked well and were all in custom mode. Recently, yesterday they block all access to any website. I have treid to reset them and still have the same problem. other than the op

  • WCS - maps

    Hello world I don't know that if after that, but how do we know what kind of cards do we need to import. We have a campus with 4 buildings on it. Wireless access are in all buildings. Do I need to get the plans on the ground / floor plans in electron