1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 from muntjac.addon.google_maps.overlay.info_window_tab \
17 import InfoWindowTab
18
19 from muntjac.addon.google_maps.overlay.marker \
20 import IMarker
21
22
24
26 self._id = Id
27 self._latLng = latLng
28 self._title = title
29 self._visible = True
30 self._iconUrl = None
31 self._iconAnchor = None
32 self._infoWindowContent = None
33 self._draggable = True
34
35
38
39
42
43
46
47
49 self._visible = visible
50
51
54
55
58
59
62
63
65 self._iconUrl = imageUrl
66
67
69 return self._iconAnchor
70
71
73 self._iconAnchor = iconAnchor
74
75
78
79
82
83
85 return self._infoWindowContent
86
87
88 - def setInfoWindowContent(self, tabs_or_parent, component=None):
89 if component is None:
90 tabs = tabs_or_parent
91 self._infoWindowContent = tabs
92 else:
93 parent = tabs_or_parent
94 self._infoWindowContent = [InfoWindowTab(parent, component)]
95
96
98 return self._draggable
99
100
102 self._draggable = draggable
103