Getting map images

I want to take my GPS data and overlay it onto a map. I was thinking about using the picture functions to draw features onto the map, e.g. highlighted path, and associated data at each point. I am tracking wheelchair users and I want to associate wheelchair data with position, using the mouse functions to bring up graphs and such, of the wheelchair data.
How do I get map data into a picture control onto which I can plot my gps data?
jc
Mac 10.4
LV7.1
CLD

jc,
The Web-based Google Maps API may be the easiest and most flexible solution of all, if you're willing to:
  1) use an ActiveX control (Internet Explorer here) in your LabVIEW panel, and
  2) host a simple external Web page (or rely on someone else's page) to produce the map/overlay object for you to display
I've been looking for an excuse to play around with Google Maps for a while now, and your post spurred me into action.  Attached is a VI (LV 8.0, sorry) that is a bit simpler than vivi's example.  It allows you to specify a center point, zoom level, and list of lat/long points for which to display a path on the map.  The Web page that produces the map image is hosted on my site for the sake of demonstration, but I included the HTML source in the VI so that you could easily transplant it to your own Web server if you want to pursue this approach.
There are other map-related examples posted in the forums besides mine and vivi's, but I didn't see one that addressed this specific need, so I figured I'd post mine.  Let me know what you think.
Take care,
John
Attachments:
DisplayPathOnMap.vi ‏33 KB

Similar Messages

  • How to get the whole map image after zoom in?

    Hi,
    I use mapviewer API to generate map images and put them in JSP as well as in Java Applet. I called the method getGeneratedImage(). After I using the methods zoomIn() or zoomOut(), I got a new map image. But the size is fixed, so after zoom in I can only see a part of the whole map. I would like to use scrollbar to see other part of the map after zoom in.
    How can I solve this problem? I have the images as predefinied themes saved in database with MBR information.
    Thanks in advance.

    Hi,
    For the map request in MapViewer you may define the data area that you want to display, as well as the device size (width and height). The result is a java Image with width and height sizes. You can draw this image on a canvas with scroll bars, and if the size of the canvas is smaller than the image size, then you should see the scroll bars. But you have to code that. MapViewer will just return an Image with the specified size.
    The zoom in/out options just change the data area, but keeps the device size. Therefore you should use the API methods to set the data area (setBox or setCenterAndSize) and to set the device size (setDeviceSize), in order to control the size of your resulted image, and then draw it on your canvas with scroll bars.
    Regards.

  • How to get "Mapped Folder Web Location"

    Hi,
    How to get "Mapped Folder Web Location" for any assets (pdf,image) while passing content ID.
    Thanks in advance.
    Thanks,
    Anurag

    Hi Anurag ,
    The information is stored in the WebUrlMapRules resultset in the SecurityInfo.hda file and can also be viewed via IdcService=GET_WEBURLMAP_PAGE.
    Test it and see if that works .
    Thanks
    Srinath

  • Map Image URL showing up ?refresh=3022972........

    Hey guys.
    Am trying to access my jsp files using mapviewer over the internet. i'm using a dial-up modem from tech to provide a public ip. and want to access it at home using a mobile simulator. it gets to the page but it won't display the map because when it calls
    mvclient.getGenerateMapImageURL();
    it returns the location of the image followed by ?refresh=3022972......
    such as http://hostname:portnumberforapplicationserver/mapviewer/images/omsmap10_30.png?refresh=3022972................
    i can access the image by typing the url without the "refresh" part.
    any suggestions as to how i can take it out of the url or why it shows up or what can be done?..
    Thanks in advance,
    Regards,
    Avinash

    actually am sorry it wasn't the refresh part that was creating the problem.
    if i type in the url for the map image in the web browser it works fine, but it i type the url in a mobile simulator such as nokia mobile simulator or even an actual mobile device it does not show up and comes up with an error. why is that? i've enabled images to be shown and set up the proxy and everything properly. the rest of the GUI works fine, just the map image won't show up!! please help...
    Avinash

  • Creating multiple links from one map image in Flash CS4

    I have been tasked with creating multiple links from one map image using flash. Each link would go to the main website page with that location. I assume I could create a button for each location on the map but not having a lot of experience any help / tutorial you know of would be super helpful.. Thanks! Not looking for someone to work me thru it but a little guidance would be great!

    If I was to answer the problem, I would be giving you what you asked not to be given... the solution.  So I'll suggest that you start by researching the getURL() function.  That is what AS2 uses for opening web pages.
    As for coding a button, I'll recommend the following article for you... it will explain the proper approach to coding a button, which will give you an advantage over others who don't follow it, but instead use the way the article says not to.
    http://www.adobe.com/devnet/flash/articles/as_bestpractices_04.html
    Google is one of the best resources available for learning how to do things with Flash--it's the first place I go when I have a wondering.  In general, if you type in the right keywords, you get fairly good search results.  In your case, combinations of "AS2", "button", "getURL", "tutorial" would probably work well.

  • Getting map extent / performance issues

    Hi together!
    We're considering migration to Oracle Maps and MapViewer. Testing the system I found two major Problems, regarding which any help would be appreciated:
    1. Our map page makes use of the MapViewer and the Oracle Maps JavaScript API. Is it possible by any way to get the extent of the current map view? Let's say, the user zooms somewhere or drags the map around. How can I then find out the coordinates auf e. g. the lower left and upper right corner of the map image (only the center coordinates are not enough)?
    2. Some of our ThemeBasedFOIs are consisting of numerous (>500) objects. Switching them on (.setVisible(true)) takes a long while, which is not acceptable for our needs. Especially point and polgyon shapes are concerned. Is there any way of improving the performance at that point? I tried using the undocumented .setMaxWholeImageLevel method, but this doesn't help as I'm often getting errors ("image size is too big"). Displaying them as additional BaseMaps is not an option too, as we want to be able to catch clicks on individual objects.
    I hope, my questions were not too annoying...
    Thanks in advance,
    Scotty

    Hi Scotty,
    on this post:
    Re: thema MVThemeBasedFOI
    you may find some information including an undocumented method MVMapView.getMapWindowBBox to retrieve the map area.
    Joao

  • I'm getting skewed images when responsive layout is enabled

    I've used this tutorial as my guide: http://tv.adobe.com/watch/adobe-evangelists-paul-trani/adobe-edge-animate-creating-a-flexi ble-layout-3-of-4/
    When I enable the percentage-based sizing for an object, the proportions of that object become distorted when viewed in the browser. According to the video, when Paul selects the percentage-based sizing option, his percentage defaults to "100%". When I attempt the same action for one of my objects I get a random percentage (like 34.1%) Any explanation why this is happening? Seems to ocurr with any object I change to percentage-based.

    I had a similar query and this helped me except for one part.
    With mine I have a map image which I've done as you suggested above but for the markers on the map I changed these to percentages too so they would scale their position when the map scaled but my issue is that now the markers loose their position on the map. Before I made the change above they kept their position but not now. Any suggestions?
    I thought these imagse might help explain what i'm talking about. thanks!

  • Keep Map Image For Remote Reference

    Maybe I'm the  last to realize this, but if you don't have a 3G iPad, but want a way to keep a map image for reference later, perhaps while driving where you might not have Internet access, try this:
    Before you go, and while your iPad has Internet access, call up one or more map images of the area you are interested in at a good magnification and while holding down the HOME key, momentarily click the SLEEP button.  This will cause a snapshot of your iPad screen to be saved permanently in your photo storage area.  
    Later, while driving, when you need to get your bearings again, simply turn your iPad on and review the previously saved images. 

    Good idea. Even if you have 3G, you can do this for the entire route and save download data.
    ...and if traveling, there are apps that show rest areas....

  • Problem with Adobe BRIDGE getting Photoshop/Image Processor menu

    When I open my drop-down or fly-out menu under TOOLS in Bridge (CS3 version), the entire portion of the menu which is supposed to appear next underneath the Cache line option is missing (i.e., Photoshop, Illustrator, InDesign, Start Meeting..., Photoshop services).
    What gives?
    I'm trying to get to Image Processor under the Photoshop menu option (which is supposed to appear in the Tools drop-down menu).
    Please tell me what's wrong. Thanks in advance.

    Thanks, but there IS no Photoshop subheading in my Tools menu.
    That exactly describes the problem I'm having!

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How can I get the image data from Clipboard with LV

    Anybody knows How can get the image data after pressd "print screen button" with LV?
    I want to program a software which can save a image as a bmp or jpeg etc, and the image data is from pressed print screen button. 
    How to get it out from clipboard. I am trapping about. thanks in advance.
    Try to make everything Automatic

    You can have a look at Rolf Kalbermatter's post here (give him stars) or, if you're using scripting, you can use the Application class Get Clipboard Image method.
    Try to take over the world!

  • I have a macbook pro, a mini display port to hdmi cable to hook up to my tv (a toshiba 1080p flatscreen).  what do I do to actually get the image on the tv screen?  Do I need another cable for sound?

    I am trying to watch a tv show that I purchased into I-tunes.  I have the cable and it hooks to the TV okay.  The TV shows the regular apple screen that looks like the universe screen - like when it boots up or is doing an upgrade on the OS.  I can't get the image to go from the laptop to the TV.  I tried under displays and it shows the TV as a display but I can't get the image on the TV.......Please help.

    Rwogera wrote:
    I couldn't transmit sound either, do i need another cable like Kim said? i mean it cant be transmitted through this HDMI port? as for me i have one of the latest mac pro with intel core i5..tnx
    I need to know which MacBook Pro you have.  Only mid-2010  and later MBP's transmit sound through MiniDisplay Port to HDMI.  I have no information about the Mac Pro, so you might want to go to that Forum and ask there.

  • I am trying to create a button in flash that will display 4 separate images at the same time when clicked.  I can't get the images to stay on when I take the mouse of the button.  I need the actions script code to make this happen.

    I am trying to create a button in flash that will allow the user to click on the button and 4 separate images show up at the same time.  I can get the images to appear when I click the button but they will not stay on the screen.  I need to know what code I use to make the images stay once the button is clicked, then I need to know exactly where I place that code.  It does not appear to be possible to add the action code to the buttons layer since each time I add a new layer I just get another "up" "over" "down" and "hit" line.
    Thank you in advance
    AP

    It is not clear how you are trying to realize this from your description.  If you are trying to create this within a button symbol it will not work.  Explain your approach and if there is code involved, show what you have so far.

  • How Do I get icons image directory to work in a JAR file?

    Yes, I must admit after going through the tutorial and other stuff I am stiil stumped
    I have an application that uses the jlfgr icons for the toolbar, and it works fine as long as i actually run it from the directory that it is in.
    I would like to put in into a jAr file, and be able to execute it from other places.
    I have a Directory named PhoneBook
    in that are the classes I use
    AddressBook - the main class
    PersonEntry - The 'data class'
    and various other things like FileFilters.....
    inside that directory there are two more:
    images - contains all the icon images
    Data - where the default 'database' entries are stored.
    I use code like this:
         private void fillToolBar( JToolBar bar )
              Dummy = new JButton(new ImageIcon("images/New16.gif"));
              Dummy.setActionCommand("New");
              Dummy.addActionListener(this);
              Dummy.setToolTipText("New");
              bar.add( Dummy );
              // etc etc
    to get all the icons into the toolbar
    I have made a Jar file that has all the classes and all the directorys with the icons in it
    and so the program runs, but does not get the icons for the toolbar, I just get a whole load of 'dud' buttons.....
    AS this is the first time i've ever got the GUI to look right rather than just the code functioning properly
    I'd like to get the whole thing in a working Jar file
    So Could someone show me Step By Step, How I get my classes and images into a Jar file
    so that i can from a different directory go
    java - jar Phone.jar
    and have the GUI come up with all the images, assuming I'm totally thickheaded when it comes to Jar files.?
    I also can't get the images to show up if I merely run the 'program' from another directory than the one it is compiled in
    I can get the program to run, just not access the images with something like
    java -cp blah/blah/blah AddressBook
    {the main class is AddressBook }
    the data directory can be anywhere as I use a JFileChooser to allow the user to open and save desired files.
    I really would appreciate some clear workable help. {though I'm running out of Duke Dollars...}

    What you need is a correct path to the directory
    inside of the jar. This can be accomplished by adding
    a line to your main program like this:
    URL
    url=myProgram.class.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(URL));
    where myProgram.class is the name of the class
    file that contain the main method.
    Hope this helps....
    ;o)
    PS: I don't want your dukes...I got them coming out of
    my ears!
    O.K, that works thank you.
    I put something like:
    for all the 'buttons' in the toolbar
    URL url = null;
    Class ThisClass = this.getClass();
    url=ThisClass.getResource("images/New16.gif");
    Dummy = new JButton(new ImageIcon(url));
    Dummy.setActionCommand("New");
    Dummy.addActionListener(this);
    Dummy.setToolTipText("New Database");
    bar.add( Dummy );
    etc for all the rest of the 'buttons'
    After Reading the API docs on URL's etc I'm still not sure as to why it works, but it does....
    I am able now to place the class files in a jar along with the images and it all works fine
    although now I don't quite follow all my code....................
    I assume that
    url=ThisClass.getResource("images/New16.gif");
    returns some sort of 'relative url ' ???
    Thanks for the help though.

  • Problem in getting the image through URL

    hi all,
    I facing the problem,Inwhich i am unable find the solution...I am using the following code to display the image
    public void doGet(HttpServletRequest request,HttpServletResponse response)
                        throws IOException, ServletException {
                   int data=0;
                   response.setContentType("image/png");
                   ServletOutputStream out = response.getOutputStream();
                   String file = request.getContextPath()+imageNames[0];
                   //String file = "C:/Program Files/Apache Group/Tomcat 4.1/webapps/ImageComm/WEB-INF/images"+imageNames[index];
                   BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
                   System.out.println("the size of the inputStream is..."+in.available());
                   System.out.println("the context path is..."+request.getContextPath());          
                   while ((data = in.read()) != -1) {
                   out.write(data);
    with the above i am not getting any error at the compile time but it was giving exception like FileNotFoundException.
    but the same thing(URL address) when i am copying on the browser it was displayig the image.
    (what might be the reason)
    one more thing when i commented on the url address and try to use the actual realpath address it was displaying the image with out any problem
    can anybody give me the solution like where to keep my images by which i can able to get the images through url address
    thanks in advance
    lakshman

    hi all,
    I am getting the image from the server.but the problem is i am getting the Exception as ArrayOutOfBound exception.
    It was displaying the Image for the first time.and when ever it was going for the second time in to the paint method it was displaying the IOException in reading the stream from the connection.
    can anybody give me the solution in rectifying that exception.
    thanks in advance
    lakshman

Maybe you are looking for

  • Matching Regular Expressions in OBPM 10GR3

    Hi all, How do I match Regular expressions like" Wait For Response" in Strings using OBPM? Any idea? Is there any exact syntax? Because I tried doing this:- for( int i=0; i < testGroup.length(); i++)      if(testGroup.reason.match(regexp : "Wait For

  • Use of  wsdl:binding

    Hi to All, Iam new to web services. Plz can any body explain the use of *<wsdl:binding>* element in wsdl file.

  • Lexmark x7170 not scanning under 10.8.2

    Hi there, I have the latest driver 11.1 for the Lexmark x7170, which is connected via USB, installed. It prints but will not do a scan. How to fix this? Thanks for Feedback Bernd

  • Do apps running in the background drain battery, slow down performance, or use cellular data?

    I have heard that if you don't kill the apps running in the background, they will drain your battery, slow your other apps down, and could be using your data without any warning.  I've looked all over the place for a definitive answer to this, but di

  • Final Cut and Motu 896

    It seems I have an issue when I am using Final Cut to edit my video projects and I am using other programs such as Livetype, Motion and any other program I might using in conjuction with Final Cut. I have only started to notice these problems this we