Projekt

Obecné

Profil

Stáhnout (1.02 KB) Statistiky
| Větev: | Tag: | Revize:
1
import { VStack, Box, Text, HStack, ScrollView, Flex, Button, CloseIcon, IconButton, TextArea, useToast } from "native-base";
2
import { Note } from "../../types/note";
3
import React, { useCallback, useState } from "react";
4
import { Floor, Room } from "../../types/plan";
5

    
6
import MapView, { Marker } from 'react-native-maps';
7
import Svg, { Image, SvgXml } from 'react-native-svg';
8
import SvgImage from "react-native-svg/lib/typescript/elements/Image";
9

    
10
const CastlePlanView = (props: { mapImage : string, selectedRoom?: Room }) => {
11

    
12
    const { mapImage, selectedRoom } = props
13

    
14
    console.log(mapImage.substring(0,500))
15

    
16
    return (
17
        <Box h={300}>
18
            {/* Display the background image */}
19
            <SvgXml
20
                xml={mapImage}
21
            />
22

    
23
            {/* Display the MapView on top of the background image */}
24
            <MapView
25
                style={{ flex: 1 }}
26
            // Add other map-related props as needed
27
            >
28
            </MapView>
29
        </Box>
30
    );
31
}
32

    
33
export default CastlePlanView
    (1-1/1)