1.6 Maps Online


Video Image.png Video Text Image.png Website blog icon circle.png Blog Image 33x33px.png

Summary

The Maps Online app is to fetch map image from a WMS server and place as background image in a graph.

WMS server locations often change. You will need to search and find your desired WMS server address.

Tutorial

Download the Sample OPJ

  1. Download the attached file. Open the OPJU file in Origin
  2. In the project file we have prepared a Pie Map chart for protein consumption in Europe

Adding Map Using Maps Online App

  1. Make sure Graph1 is active
  2. Click the Maps Online icon, MapsOnline Icon.png, from Apps Gallery.
  3. In the opened dialog, click the Tutorial Data Connect To Web 1.91.png button beside the Map drop-down . it will open a dialog. Now add the information below in dialog to add a new server
    Notes: The Maps Online App queries a WMS server. These servers often change. If the service below is broken, try and locate an updated URL.
  4. Choose BlueMarbleNG-TB from Layers drop-down list. The longitude and latitude of Area part will be updated automatically according the scale of the active graph. Click Preview button on the bottom left to preview the map.

    We can using the Tutorial Data Connect To Web 1.91.png button beside the Layer drop-down to load more than one maps, such as boundary and colorfilled map. For more details, please refer to the blog post

    MapsOnline Europe Map.png
  5. Click OK button to close Maps Online dialog and load map.
    Piemap withmap.png

Further Customizing the Graph

  1. Click on the labels on graph, in the pop-up mini toolbar, click the Position button and choose Below
    Label below.png
  2. To overlay the Europe boundary on graph, choose menu "Insert: Europe Map"
  3. Select the Europe line in the right Object Manager, in the mini toolbar, change the color to be gray and width to be 1
    OM Line Minitoolbar.png
  4. Finally we will get the graph
    Maps online final.png

Dialog Settings

Web Map Service.png

Map The data source of WMS.

You can add/delete sources through the button on the right.

Layers Map layer(s)

You can select more than one layer through the button on the right.

Style A style of the selected layer (if applicable).
Area
  • North
    The latitude. It must be greater than the southern latitude and not greater than 90.
  • South
    The latitude. It must be less than the northern latitude and not less than -90.
  • West
    The longitude. It must be less than the eastern longitude and not less than -180.
  • East
    The longitude. It must be greater than the western longitude.
Resolution The longest distance in meter represented by each pixel.


There is a config file under the Apps folder, "%@AMaps Online\MapsOnline.conf":

IsImportToMatrix
  • 0
    The result will be inserted into a graph.
  • 1
    The result will be imported into a matrixsheet.
IsAlwaysRescale
  • 0
    After inserting the result into a graph, the graph scale will not change.
  • 1
    After inserting the result into a graph, the graph scale will change accordingly.
IsTransparent
  • 0
    It tries to download non-transparent images (if applicable).
  • 1
    It tries to download transparent images (if applicable).
BackgroundColor Image background color if applicable. Used when downloading non-transparent images.