The
OpenStreetMap widget displays street
and map information for a selected location. You can configure the
OpenStreetMap widget to display information for a particular location,
you can wire the
OpenStreetMap widget to receive a location from
another widget on the page, and you can wire the
OpenStreetMap widget
to send its location to another widget on the page.
Configuration tips
To display street and map details for a single location, configure the
OpenStreetMap widget
by providing desired location details.
To display street and map details for locations chosen in other widgets,
wire the
OpenStreetMap widget to receive a location from another
widget on the page. The
OpenStreetMap can also send its location
information to other widgets on the page, using a variety of formats.
Events
See the following table to learn which events the
Accuweather widget
can send and receive:
Send
Name – event of type string that sends the
city name
Longitude – event of type string that sends
the location longitude
Latitude – event of type string that sends
the location latitude
Street – event of type string that sends
the street name
Street number – event of type string that
sends the street number
Country – event of type string that sends
the country name
Region – event of type string that sends
the region name. For example, state for an address in the United States.
Sub region – event of type string that sends
the subregion name. For example, county for an address in the United States.
Postal code – event of type string that sends
the zip code
Population – event of type string that sends
the city population
Type – event of type string that sends the
location type. For example, seat of a first-order administrative division.
Data – event of type string that sends all
data associated with the location as a comma-separated list (.csv format).
For example:
Name,Longitude,Latitude,Country,Region,Subregion,Population,Type|String,String,String,String,String,String,String,String|Raleigh,-78.6386145,35.772096,United
States,North Carolina,Wake County,276093,seat of a first-order administrative
division
JSON – event of type JSON that sends all data associated with the location
as a JSON object. For example:
[{"name": "Raleigh", "longitude":
"-78.6386145", "latitude": "35.772096", "country":
"United States", "region": "North Carolina",
"subregion": "Wake County", "population":
"276093", "type": "seat of a first-order administrative
division"}]
Receive
feedURL – event of type string that receives
the location from a feed
location – event of type string that receives
the location
Example scenario:
Goal:
Display the street details and county name
from location data received from the Customer List widget
Steps required:
1. Drag the OpenStreetMap, Event Explorer
and Customer List widgets onto the page.
2. Hover your cursor over the OpenStreetMap
widget and click the wiring icon
to
open the wiring interface. Do the following steps:
A. Click the Receive
tab.
B. In the Select content to receive section,
select string from location.
C. In the Select a widget to send content
section, select Customer List.
D. In the Select content to send section,
select string from Zip.
E. Click Done.
3. Hover your cursor over the OpenStreetMap
widget and click the wiring icon
to
open the wiring interface. Do the following steps:
A. Click the Send
tab.
B. In the Select content to send section,
select string from subregion.
C. In the Select a widget to receive content
section, select Event Explorer.
D. In the Select content to send section,
select Display Event Data.
E. Click Done.

4. In the widget, click different customer names to display the street
and population details of their location in the widgets.
