1 | import { COMPONENT_TYPES, FORM_TYPES, BORDER_RADIUS_MODE } from "../core/component-types";
|
2 | export const SEED_DATA = {
|
3 | name: "Map",
|
4 | tag: "MapSimple",
|
5 | description: "A map, with optional markers",
|
6 | category: COMPONENT_TYPES.deprecated,
|
7 | preview_image_url: "{CLOUDINARY_URL}/Map_Simple.png",
|
8 | supports_list_render: false,
|
9 | layout: {},
|
10 | props: {
|
11 | initialLatitude: {
|
12 | label: "Initial latitude",
|
13 | description: "The latitude of the location to center the map on initially",
|
14 | type: FORM_TYPES.number,
|
15 | min: -90,
|
16 | max: 90,
|
17 | step: 1,
|
18 | precision: 6,
|
19 | value: 37.402184,
|
20 | required: true,
|
21 | editable: true
|
22 | },
|
23 | initialLongitude: {
|
24 | label: "Initial longitude",
|
25 | description: "The longitude of the location to center the map on initially",
|
26 | type: FORM_TYPES.number,
|
27 | min: -180,
|
28 | max: 180,
|
29 | step: 1,
|
30 | precision: 6,
|
31 | value: -122.121264,
|
32 | required: true,
|
33 | editable: true
|
34 | },
|
35 | initialLatitudeDelta: {
|
36 | label: "Initial latitude delta",
|
37 | description: "The amount of latitude to display on the map initially (the horizontal zoom)",
|
38 | type: FORM_TYPES.number,
|
39 | min: 0.0001,
|
40 | max: 100,
|
41 | step: 1,
|
42 | precision: 4,
|
43 | value: 0.2,
|
44 | required: true,
|
45 | editable: true
|
46 | },
|
47 | initialLongitudeDelta: {
|
48 | label: "Initial longitude delta",
|
49 | description: "The amount of longitude to display on the map initially (the vertical zoom)",
|
50 | type: FORM_TYPES.number,
|
51 | min: 0.0001,
|
52 | max: 100,
|
53 | step: 1,
|
54 | precision: 4,
|
55 | value: 0.2,
|
56 | required: true,
|
57 | editable: true
|
58 | },
|
59 | aspectRatio: {
|
60 | label: "Aspect ratio",
|
61 | description: "Aspect ratio of the map",
|
62 | type: FORM_TYPES.aspectRatio,
|
63 | value: 1,
|
64 | editable: true,
|
65 | required: true
|
66 | },
|
67 | interactionDisabled: {
|
68 | label: "Disable interaction",
|
69 | description: "Prevent users from dragging or zooming on the map",
|
70 | type: FORM_TYPES.boolean,
|
71 | value: false,
|
72 | editable: true,
|
73 | required: false
|
74 | },
|
75 | pinColor: {
|
76 | label: "Pin color",
|
77 | description: "Color of the map pins",
|
78 | editable: true,
|
79 | required: true,
|
80 | value: "primary",
|
81 | type: FORM_TYPES.color
|
82 | },
|
83 | markers: {
|
84 | label: "Markers",
|
85 | description: "Markers for the map.",
|
86 | type: FORM_TYPES.arrayInput,
|
87 | value: [],
|
88 | editable: true,
|
89 | required: false
|
90 | },
|
91 | borderRadiusMode: BORDER_RADIUS_MODE
|
92 | }
|
93 | };
|
94 |
|
\ | No newline at end of file |