-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Open Layers, migrate to Leaflet JS (#71)
* Basic migration to LeafletJS started. * Remove bloodhound, add leaflet nominatim search. Change all typeahead calls to async AJAX calls. * Almost done with convertig to Leaflet. * Enable double click marker additions. * Remove Open layers for good. Add documentation for new features.
- Loading branch information
Showing
30 changed files
with
2,253 additions
and
1,464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import javax.annotation.Nullable; | ||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
/** | ||
* Copyright 2015-2021 Maximilian Kalus [[email protected]] | ||
|
@@ -28,6 +29,36 @@ public interface ApplicationSettings { | |
*/ | ||
@Nullable String getSetting(String key); | ||
|
||
/** | ||
* retrieve a setting from settings - if empty, get default | ||
* @param key to look for | ||
* @return value retrieved or default value | ||
*/ | ||
@Nullable String getSettingOrDefault(String key, String defaultValue); | ||
|
||
/** | ||
* retrieve a setting from settings - parse to int | ||
* @param key to look for | ||
* @param defaultValue value retrieved or default value | ||
* @return value retrieved or default value | ||
*/ | ||
int getSettingAsInteger(String key, int defaultValue); | ||
|
||
/** | ||
* retrieve a setting from settings - parse to double | ||
* @param key to look for | ||
* @param defaultValue value retrieved or default value | ||
* @return value retrieved or default value | ||
*/ | ||
double getSettingAsDouble(String key, double defaultValue); | ||
|
||
/** | ||
* retrieve all settings starting with a certain key - this key is also cut from the settings | ||
* @param key part to look for | ||
* @return list of matches | ||
*/ | ||
Map<String, String> getAllSettingsStartingWith(String key); | ||
|
||
/** | ||
* retrieve a setting from the settings - with default value | ||
* @param key to look for | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.