Compare commits
2 commits
develop
...
theme/natu
Author | SHA1 | Date | |
---|---|---|---|
d253517959 | |||
c7699a4b42 |
2 changed files with 7 additions and 10 deletions
|
@ -5,6 +5,7 @@ import {VariableUiElement} from "../../UI/Base/VariableUIElement";
|
|||
import LayoutConfig from "../../Models/ThemeConfig/LayoutConfig";
|
||||
import {QueryParameters} from "../Web/QueryParameters";
|
||||
import FeatureSource from "../FeatureSource/FeatureSource";
|
||||
import {BBox} from "../BBox";
|
||||
|
||||
export interface GeoLocationPointProperties {
|
||||
id: "gps",
|
||||
|
@ -282,11 +283,7 @@ export default class GeoLocationHandler extends VariableUiElement {
|
|||
if (b) {
|
||||
if (b !== true) {
|
||||
// B is an array with our locklocation
|
||||
inRange =
|
||||
b[0][0] <= location.latitude &&
|
||||
location.latitude <= b[1][0] &&
|
||||
b[0][1] <= location.longitude &&
|
||||
location.longitude <= b[1][1];
|
||||
inRange = new BBox(b).contains([location.longitude, location.latitude])
|
||||
}
|
||||
}
|
||||
if (!inRange) {
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
{
|
||||
"builtin": "toilet",
|
||||
"override": {
|
||||
"minzoom": "14",
|
||||
"minzoom": "15",
|
||||
"source": {
|
||||
"geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
|
||||
"geoJsonZoomLevel": 12,
|
||||
|
@ -225,7 +225,7 @@
|
|||
{
|
||||
"builtin": "drinking_water",
|
||||
"override": {
|
||||
"minzoom": "14",
|
||||
"minzoom": "16",
|
||||
"source": {
|
||||
"geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
|
||||
"geoJsonZoomLevel": 12,
|
||||
|
@ -243,7 +243,7 @@
|
|||
{
|
||||
"builtin": "parking",
|
||||
"override": {
|
||||
"minzoom": "14",
|
||||
"minzoom": "17",
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": {
|
||||
|
@ -270,7 +270,7 @@
|
|||
{
|
||||
"builtin": "information_board",
|
||||
"override": {
|
||||
"minzoom": "14",
|
||||
"minzoom": "16",
|
||||
"source": {
|
||||
"geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
|
||||
"geoJsonZoomLevel": 12,
|
||||
|
@ -288,7 +288,7 @@
|
|||
{
|
||||
"builtin": "bench",
|
||||
"override": {
|
||||
"minzoom": "14",
|
||||
"minzoom": "18",
|
||||
"source": {
|
||||
"geoJson": "https://raw.githubusercontent.com/pietervdvn/MapComplete-data/main/natuurpunt_cache/natuurpunt_{layer}_{z}_{x}_{y}.geojson",
|
||||
"geoJsonZoomLevel": 12,
|
||||
|
|
Loading…
Add table
Reference in a new issue