Configuring a PushPin

The PushPin is a control on the GraphWorX64 2D ribbon's Controls tab. An advanced version of the PushPin control is also available in GraphWorX64 when an EarthWorX Viewer map has been added to the display. To add a PushPin, simply click the PushPin control then click on the map where you want the PushPin to appear. Once the PushPin appears you will see it listed in the object Explorer and the Properties window will display the settings for the PushPin. You can resize, change the color, and link data to the PushPin. Note that when the PushPin is added to an EarthWorX map, you can specify the latitude and longitude for where the PushPin is to be located on the map, as described below in Specifying a PushPin's GPS Coordinates.

 

PushPins on a City Map

 

This topic describes how to:

Add a PushPin to a Display or Map

Enter Keys and Data Values for a PushPin

Change the Appearance of the PushPin

Create a New PushPin Template for EarthWorX

PushPin Properties

 

For additional information, refer to:

PushPins

Adding a PushPin to a Map Using API Methods

Using Aliases with PushPins

Add a PushPin to a Display or to a Map

PushPins quickly identify locations on a map or in any 2D display. A PushPin is simply another object in the display, with its own object properties. To add a PushPin to a map or display:

Return to top

Enter Keys and Data Values for a PushPin's Tooltips

You can enter use data values and aliases in the PushPin's tooltips so that runtime users can easily access information about the location that the PushPin identifies. To add such information to a PushPin's tooltips:

  1. Double click the PushPin in the display. The Edit Data Values dialog box appears.

  2. For each data value you are going to include in the tooltips, type a key (this is a label that tells users what the corresponding value means) and then specify the value (such as a value, a string, an OPC tag, or an alias). You can click the ellipsis button in the Value column to choose a value from the Data Browser.

  3. Click OK when you are done.

In the following example, a global alias identifies the building, and an OPC tag flags the front door. The tooltip displays the name in the Name property and the data values entered here.

 

Important: To display data values in the PushPin's tooltip, you must leave the PushPin's Description property empty.

 

Setting Data Values (left) that Display in PushPin Tooltips (right)

 

 

Return to top

Change the Appearance of the PushPin

  1. Select the PushPin by clicking it in the display or in the Object Explorer.

  2. Go to the PushPin's Properties tab and change property values to achieve the desired appearance. PushPin properties are described at the end of this topic in PushPin Properties.

Alternatively, you can create an entirely different design for your PushPins in EarthWorX, by following the steps below.

 

Return to top

 

Create a New PushPin Template for EarthWorX

If the display contains an EarthWorX map, you can design a new PushPin that you can save for reuse.

  1. In the Object Explorer, select the EarthWorX Viewer object.

  2. From the EarthWorX Configuration ribbon, click the drop-down menu at the right of the Pins Gallery section.

  3. Select Add a new template to the gallery (at the bottom of the drop-down menu). The following dialog box appears:

Create a New PushPin Template

  1. Design the PushPin you desire. You can configure the PushPin's appearance (specify its opacity, type, and color or fill). Optionally, you can configure its shadow (put a checkmark in the Show Shadow check box and then specify the shadow's appearance). Click OK when you are done.

PushPin Types are:

Classic:

Disc:

Image:

An image of your choosing, saved in an image file.

Modern:

Square:

 

Note that the options that are available on the dialog box change in accordance with the type of PushPin you are designing. For example, shadowing is available only with type Modern.

  1. The new template design is now available in the Pins Gallery on the EarthWorX Configuration ribbon. The following figure shows a new PushPin template in the form of a lilac-colored disc, added in the first position of the Pins Gallery. You can now add your new template to an EarthWorX map.

New PushPin Template (on the left) in the Pins Gallery

 

Return to top

 

Specifying a PushPin's GPS Coordinates

If you are working with a PushPin in a GraphWorX64 display that contains an EarthWorX Viewer and map, you can place a PushPin accurately on the map by entering its GPS coordinates latitude and longitude on the map.

  1. Add the PushPin to the map.

  2. Make sure you are in advanced mode. To do this, go to the ribbon's View tab, then drop down the Application Mode button on the far right and select Advanced Mode.

  3. With the PushPin still selected, click on its Properties tab, and scroll down to the bottom of the properties list.

  4. In the Latitude and Longitude properties, specify the GPS coordinates where the PushPin is to be located.

 

Return to top

 

PushPin Properties

After you place a PushPin on the design surface, you can make changes to it using the PushPin's Properties tab. To access a PushPin's properties, select the PushPin, then set its properties. Properties that are available in Advanced mode are described below; to understand Basic, Standard, and Advanced modes, refer to the Application Modes topic.

Modern:

Classic:

Image:

An image of your choosing, saved in an image file.

Disc:

Square:

Return to top

 

See also:

PushPins

Working With EarthWorX

Object Properties

Find and Replace Properties in Displays and Symbols

Preferences