Class DefaultGeolocationConfiguration
- java.lang.Object
-
- org.opennms.features.geolocation.services.DefaultGeolocationConfiguration
-
- All Implemented Interfaces:
GeolocationConfiguration
public class DefaultGeolocationConfiguration extends Object implements GeolocationConfiguration
The default configuration is stored in opennms.properties.
-
-
Field Summary
Fields Modifier and Type Field Description static 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 Map<String,String>
getOptions()
Returns the layer options for the tile layer.String
getTileServerUrl()
Returns the tile server url.
-
-
-
Field Detail
-
OPTIONS_KEY_PREFIX
public static final 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 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 Map<String,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
-
-