Browse Source

fix map build

pull/39/head
Sacha Weatherstone 4 years ago
parent
commit
d72a859f39
  1. 13
      src/pages/Map/index.tsx

13
src/pages/Map/index.tsx

@ -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

Loading…
Cancel
Save