Distributed/Geographical Maps do not show images anymore

Description

The Distirbuted and Geographical Map in OpenNMS use a so called tile server to generate a graphical representation from the data open street maps provides.

OpenNMS uses the tileserver from MapQuest as a default.
However, as of 2017-07-11, the tile servers cannot be used anymore.
See http://devblog.mapquest.com/2016/06/15/modernization-of-mapquest-results-in-changes-to-open-tile-access/ for more details about the reasons.
The attached screenshot shows the result of still accessing the discontinued API.

To address this issue the following problems must be solved:

  • find another default tile server provider

  • use the gwt.openlayers.url property in the node-map-application (Geographical Maps) as well, as it is currently hard coded

  • Allow setting additional "TileLayer" properties, in order to set subdomains, attributions, etc. See http://leafletjs.com/reference.html#tilelayer-options. Especially the attribution option is crucial as if we are going to fallback to use http://tile.openstreetmap.org/ as the default. Their usage policy requires to set the attribution correctly. At the moment we cannot set it at all

  • Maybe host our own tile server

Suggested default tile server: http://tile.openstreetmap.org/, but may result in problems described here: http://wiki.openstreetmap.org/wiki/Tile_usage_policy

List of available tile servers: https://leaflet-extras.github.io/leaflet-providers/preview/

Workaround for Distributed Maps:
Set the property gwt.openlayers.url in the opennms.properties to another tile server:

Acceptance / Success Criteria

None

Attachments

1

blocks

Lucidchart Diagrams

Activity

Show:

Marcos Ridao November 29, 2018 at 9:30 PM

Hi.

I changed the gwt.openlayers.url variable in the opennms.properties file, the distributed map is now working ok, but the geographiical map not. Should i change something else for this map to work?

Thanks

Benjamin Reed July 18, 2016 at 3:48 PM

FYI, I committed this without the opennms.properties changes to Meridian 2015.1.2 and 2016.1.2. In those trees, I created an upgrade script that will add the properties to opennms.properties if they're missing or the old default (mapquest's server).

Benjamin Reed July 15, 2016 at 1:58 PM

merged the foundation and 18.0.1 versions, and I did the merge to foundation-2016. Marking as fixed.

Benjamin Reed July 14, 2016 at 3:20 PM

Yeah, the new code honors the gwt.openlayers.url entry in opennms.properties for both the remote poller map and the geomaps, and they're configured to use our new tile server/proxy.

I just fixed the last of the initialization issues, and it's going through a bamboo run now. Hopefully we can get a new version of horizon and meridian out soon with the fix.

Michael Seibold July 14, 2016 at 12:49 PM

If you fix this issue please consider that it should be possible to configure/address (if not already done) a locally installed tileserver like mapnik.
We will try this way to be independent from third party tools.

Fixed

Details

Assignee

Reporter

Components

Priority

PagerDuty

Created July 12, 2016 at 8:21 AM
Updated November 29, 2018 at 9:30 PM
Resolved July 15, 2016 at 1:58 PM