To view your entities, you start the web application and upload the business object model
(BOM) for the solution.
Procedure
- In a browser, enter the following URL:
http://hostname:port/ibm/maps/application.html
The hostname is the name or IP address of the development server. The default
port is 9080 or 9443. If the default is not available, use the value that is
specified in the bootstrap.properties file.
- From the menu in the upper left corner, select the solution that contains the entities that you
want to view.
- From the menu in the upper right corner, select Upload BOM, specify the
location of the .bom file, and click Upload BOM. The .bom file is located in your Eclipse workspace in the
\bom folder of the BOM project.
- On the menu, select Export settings. A JSON file is exported that describes the current settings in Insight Map Viewer.
- Replace the mapSpecification element in the JSON file with the name and
attributes of a web map tile service.
The following example uses Open Street Map tiles. In most cases, you are likely to use your own
tile server or a commercial service.
"mapSpecification": {
"className": "OSM",
"name": "OSM",
"url": "http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
"options": {
"attribution": "<div class='gvAttributionFrame'><span>powered by </span><a
href='http://vaas-ic.mybluemix.net/'>IBM Interactive Maps Technology</a><span>, Data CC-BySA
by </span><a href='http://openstreetmap.org/'>OpenStreetMap</a><span>, Colors from
</span><a href='http://www.colorbrewer.org'>ColorBrewer.org</a></div>"
}
}
- On the menu, select Import settings and locate the modified settings
file.
- Refresh the page or clear the browser cache to display the map.
Results
Figure 1. Map showing several entities
The map displays the entities that have moving and static geometry attributes. You can use the
+ and - buttons in the upper left corner of the map to
zoom in and out. The maximum number of entities displayed is 1,000 per entity type.
Every type of entity that is defined in the BOM is displayed as a separate layer on the map. You
can choose to show or hide a layer of entities. Click the filter symbol to open a menu and select
the layers that you want to show.
If entities are displayed in the same location, some of them might be hidden. To access such an
entity, filter the layer that is hiding it.
Tip: If you do not see your entities, click the button under the zoom in and zoom out
buttons. The map centers around the existing entities in your solution. If the map shows no entities
at all, make sure that the entities in your solution exist and that they contain geographical
data.