@@ -83,29 +83,87 @@ <h4>Model Id/Key</h4>
83
83
</ td >
84
84
</ tr >
85
85
< tr >
86
- < td > doCluster</ td >
86
+ < td > type < br /> < span class ="badge badge-info "> New 2.1.6</ span > </ td >
87
+ < td > < span class ="label label-info "> expression</ span > </ td >
88
+ < td > String evaluated expression which should evaluate to:
89
+ < ul >
90
+ < li > null/undefined (regular marker)</ li >
91
+ < li > spider (spiderfy)</ li >
92
+ < li > cluster (clusterer)</ li >
93
+ </ ul >
94
+ </ td >
95
+ </ tr >
96
+ < tr >
97
+ < td > typeOptions < br /> < span class ="badge badge-info "> New 2.1.6</ span > </ td >
98
+ < td > < span class ="label label-info "> expression</ span > </ td >
99
+ < td > Object containing options to pass to the marker relative to clusterer or spiderfy.
100
+ < a href ="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.16/docs/reference.html ">
101
+ clusterer
102
+ </ a >
103
+ < a href ="https://github.com/nmccready/OverlappingMarkerSpiderfier ">
104
+ spiderfy
105
+ </ a >
106
+ </ td >
107
+ </ tr >
108
+ < tr >
109
+ < td > typeEvents < br /> < span class ="badge badge-info "> New 2.1.6</ span > </ td >
110
+ < td > < span class ="label label-info "> expression</ span > </ td >
111
+ < td > Object containing event options to pass to the marker relative to clusterer or spiderfy.
112
+ < a href ="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.16/docs/reference.html ">
113
+ clusterer
114
+ </ a >
115
+ < a href ="https://github.com/nmccready/OverlappingMarkerSpiderfier ">
116
+ spiderfy
117
+ </ a >
118
+ events handle.
119
+ < br />
120
+ < p >
121
+ This companion object is expected to be an object of the following optional functions: click,
122
+ mouseover,
123
+ or mouseout.
124
+ </ p >
125
+ < pre >
126
+ # example
127
+ # for more see example (grunt examples)
128
+ # issue-393-cluster-events-mapped.html
129
+ $scope.clickEventsObject =
130
+ click: (cluster, clusterModels) ->
131
+ mouseout: (cluster, clusterModels) ->
132
+ mouseover: (cluster, clusterModels) ->
133
+ </ pre >
134
+
135
+ < p >
136
+ The function handle signature is (cluster:Array[GMarkers], clusterModels:Array[YourModel]). This
137
+ handler
138
+ returns a directly mapped array of your models which belong to gMarker cluster sent along.
139
+ </ p >
140
+ </ td >
141
+ </ tr >
142
+ < tr >
143
+ < td > doCluster < span class ="badge badge-warning "> deprecated</ span > < p > see type attribute</ p > </ td >
87
144
< td > < span class ="label label-info "> expression</ span > </ td >
88
145
< td > boolean property to tell the directive to use clustering. This attribute is not really bindable at the
89
146
moment. Therefore it just needs to evaluate to javascript true. "true" or even "".
90
147
</ td >
91
148
</ tr >
92
149
< tr >
93
- < td > clusterOptions</ td >
150
+ < td > clusterOptions < span class =" badge badge-warning " > deprecated </ span > < p > see typeOptions attribute </ p > </ td >
94
151
< td > < span class ="label label-info "> expression</ span > </ td >
95
- < td > object containing options to pass to the marker
152
+ < td > Object containing options to pass to the marker.
96
153
< a href ="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.16/docs/reference.html ">
97
154
clusterer
98
155
</ a >
99
156
</ td >
100
157
</ tr >
101
158
< tr >
102
- < td > clusterEvents</ td >
159
+ < td > clusterEvents < span class =" badge badge-warning " > deprecated </ span > < p > see typeEvents attribute </ p > </ td >
103
160
< td > < span class ="label label-info "> expression</ span > </ td >
104
- < td > object containing event options to pass to the marker
161
+ < td > Object containing event options to pass to the marker.
105
162
< a href ="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.16/docs/reference.html ">
106
163
clusterer
107
164
</ a >
108
165
events handle.
166
+ < br />
109
167
< p >
110
168
This companion object is expected to be an object of the following optional functions: click,
111
169
mouseover,
@@ -155,9 +213,11 @@ <h4>Model Id/Key</h4>
155
213
< tr >
156
214
< td > modelsbyref</ td >
157
215
< td > < span class ="label label-info "> expression</ span > </ td >
158
- < td > expression binding : To evaluate to truthy. This also means markers by default deep watches since
159
- modelsbyref is undefined. If set to true, 'true', 'T', and many more then shallow watching is turned on.
160
- Search the code base for uiGmapGmapUtil.isTrue
216
+ < td > expression binding :
217
+ < p > To evaluate to truthy.</ p >
218
+ < p >
219
+ By default deep watches since modelsbyref is undefined. If set to true, 'true', 'T', and many more then shallow watching is turned on. Search the code base for uiGmapGmapUtil.isTrue
220
+ </ p >
161
221
</ td >
162
222
</ tr >
163
223
< tr ng-include ="'./views/directive/partials/options.html' "
@@ -196,6 +256,10 @@ <h4>Example</h4>
196
256
197
257
doCluster = "{string or object}"
198
258
clusterOptions = '{expression}'
259
+ clusterEvents = '{expression}'
260
+ type = "{expression or string} (spider or cluster or null(default))"
261
+ typeOptions = '{expression}'
262
+ typeEvents = '{expression}'
199
263
fit = "{string or object}"
200
264
201
265
coords = "'{string}'"
0 commit comments