regression
This commit is contained in:
parent
15e52d39d9
commit
b9c2cf3448
|
@ -1,7 +1,10 @@
|
||||||
import { Component, createEffect, onMount } from 'solid-js';
|
import { Component, createEffect, onMount } from 'solid-js';
|
||||||
import OlMap from 'ol/Map';
|
import OlMap from 'ol/Map';
|
||||||
|
|
||||||
import { currentOverlayDefinition } from '../map-tile-provider';
|
import {
|
||||||
|
currentOverlayDefinition,
|
||||||
|
isHighlightedTagType,
|
||||||
|
} from '../map-tile-provider';
|
||||||
import { Feature } from 'ol';
|
import { Feature } from 'ol';
|
||||||
import { Point } from 'ol/geom';
|
import { Point } from 'ol/geom';
|
||||||
import VectorLayer from 'ol/layer/Vector';
|
import VectorLayer from 'ol/layer/Vector';
|
||||||
|
@ -12,7 +15,7 @@ import { style } from '../gpx/styles';
|
||||||
import ClusterableVectorTileSourceProxy from '../../lib/ClusterableVectorTileSourceProxy';
|
import ClusterableVectorTileSourceProxy from '../../lib/ClusterableVectorTileSourceProxy';
|
||||||
import { getMap, getZoomInteger } from '../map/Map';
|
import { getMap, getZoomInteger } from '../map/Map';
|
||||||
import { getCenter } from 'ol/extent';
|
import { getCenter } from 'ol/extent';
|
||||||
import { getVectorTileFeatureType } from './overlay-definitions';
|
import { getTagType, getVectorTileFeatureType } from './overlay-definitions';
|
||||||
import GeoJSON from 'ol/format/GeoJSON.js';
|
import GeoJSON from 'ol/format/GeoJSON.js';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
@ -136,7 +139,7 @@ export const Overlays: Component<Props> = ({ map }) => {
|
||||||
if (
|
if (
|
||||||
getZoomInteger() < 16 &&
|
getZoomInteger() < 16 &&
|
||||||
getVectorTileFeatureType(feature) === 'poi' &&
|
getVectorTileFeatureType(feature) === 'poi' &&
|
||||||
isHighlighted(feature)
|
isHighlightedTagType(getTagType(feature))
|
||||||
) {
|
) {
|
||||||
return new Point(getCenter(feature.getGeometry().getExtent()));
|
return new Point(getCenter(feature.getGeometry().getExtent()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue