Class DefaultGeolocationConfiguration
- java.lang.Object
-
- org.opennms.features.geolocation.services.DefaultGeolocationConfiguration
-
- All Implemented Interfaces:
GeolocationConfiguration
public class DefaultGeolocationConfiguration extends java.lang.Object implements GeolocationConfiguration
The default configuration is stored in opennms.properties.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OPTIONS_KEY_PREFIX
The key prefix under which all options are stored in opennms.properties.
-
Constructor Summary
Constructors Constructor Description DefaultGeolocationConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getOptions()
Returns the layer options for the tile layer.java.lang.String
getTileServerUrl()
Returns the tile server url.
-
-
-
Field Detail
-
OPTIONS_KEY_PREFIX
public static final java.lang.String OPTIONS_KEY_PREFIX
The key prefix under which all options are stored in opennms.properties.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTileServerUrl
public java.lang.String getTileServerUrl()
Description copied from interface:GeolocationConfiguration
Returns the tile server url. See http://leafletjs.com/reference.html#tilelayer for more details.- Specified by:
getTileServerUrl
in interfaceGeolocationConfiguration
- Returns:
- the tile server url
-
getOptions
public java.util.Map<java.lang.String,java.lang.String> getOptions()
Description copied from interface:GeolocationConfiguration
Returns the layer options for the tile layer. The options should contain a 'attribution' tile layer option to honor the contributors appropriate. See http://leafletjs.com/reference.html#tilelayer-options for more details.- Specified by:
getOptions
in interfaceGeolocationConfiguration
- Returns:
- the layer options for the tile layer
-
-