fix map build
This commit is contained in:
@@ -57,16 +57,15 @@ export const MapPage = (): JSX.Element => {
|
||||
marginLeft="auto"
|
||||
size="small"
|
||||
onClick={() => {
|
||||
console.log("clicked");
|
||||
console.log(map);
|
||||
|
||||
if (n.data.position?.latitudeI) {
|
||||
map?.flyTo({
|
||||
center: [
|
||||
n.data.position?.latitudeI / 1e7,
|
||||
n.data.position?.longitudeI / 1e7,
|
||||
n.data.position.longitudeI / 1e7,
|
||||
n.data.position.latitudeI / 1e7,
|
||||
],
|
||||
zoom: 10,
|
||||
});
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</Pane>
|
||||
@@ -90,9 +89,7 @@ export const MapPage = (): JSX.Element => {
|
||||
</Pane>
|
||||
</Marker>
|
||||
))}
|
||||
{nodes
|
||||
.filter((n) => n.data.position?.latitudeI)
|
||||
.map((n) => {
|
||||
{nodes.map((n) => {
|
||||
if (n.data.position?.latitudeI) {
|
||||
return (
|
||||
<Marker
|
||||
|
||||
Reference in New Issue
Block a user