MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / constructor

Method constructor

example/src/examples/Callouts.tsx:26–64  ·  view source on GitHub ↗
(props: any)

Source from the content-addressed store, hash-verified

24 marker2: any;
25 marker4: any;
26 constructor(props: any) {
27 super(props);
28
29 this.state = {
30 cnt: 0,
31 region: {
32 latitude: LATITUDE,
33 longitude: LONGITUDE,
34 latitudeDelta: LATITUDE_DELTA,
35 longitudeDelta: LONGITUDE_DELTA,
36 },
37 markers: [
38 {
39 coordinate: {
40 latitude: LATITUDE + SPACE,
41 longitude: LONGITUDE + SPACE,
42 },
43 },
44 {
45 coordinate: {
46 latitude: LATITUDE + SPACE,
47 longitude: LONGITUDE - SPACE,
48 },
49 },
50 {
51 coordinate: {
52 latitude: LATITUDE,
53 longitude: LONGITUDE,
54 },
55 },
56 {
57 coordinate: {
58 latitude: LATITUDE,
59 longitude: LONGITUDE - SPACE / 2,
60 },
61 },
62 ],
63 };
64 }
65
66 show() {
67 this.marker1.showCallout();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected