render Map tab as 'a'; remove logs;
This commit is contained in:
@ -499,7 +499,6 @@ export const zoomToFeature = (map_id: string, feature: Feature | undefined) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const getFeatureByEntityId = (entity_id: number, layer: VectorImageLayer<Feature<Geometry>, VectorSource<Feature<Geometry>>>) => {
|
export const getFeatureByEntityId = (entity_id: number, layer: VectorImageLayer<Feature<Geometry>, VectorSource<Feature<Geometry>>>) => {
|
||||||
console.log(entity_id, layer.getSource()?.getFeatures())
|
|
||||||
return layer.getSource()?.getFeatures().find(feature => feature.getProperties().entity_id === entity_id)
|
return layer.getSource()?.getFeatures().find(feature => feature.getProperties().entity_id === entity_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ function MapTest() {
|
|||||||
<Tab value={key} icon={<Map16Regular />}>
|
<Tab value={key} icon={<Map16Regular />}>
|
||||||
{id[key]?.mapLabel ?? `Tab ${key}`}
|
{id[key]?.mapLabel ?? `Tab ${key}`}
|
||||||
<Button
|
<Button
|
||||||
|
as='a'
|
||||||
style={{ marginLeft: '0.5rem' }}
|
style={{ marginLeft: '0.5rem' }}
|
||||||
size="small"
|
size="small"
|
||||||
icon={<Dismiss12Filled />}
|
icon={<Dismiss12Filled />}
|
||||||
|
Reference in New Issue
Block a user