@@ -113,39 +113,39 @@ const EVENTS =
113
113
* @property {Event } domEvent - dom event
114
114
*/
115
115
'touchend' ;
116
- /**
117
- * mouseenter event for geometry
118
- * @event Geometry#mouseenter
119
- * @type {Object }
120
- * @property {String } type - mouseenter
121
- * @property {Geometry } target - the geometry fires mouseenter
122
- * @property {Coordinate } coordinate - coordinate of the event
123
- * @property {Point } containerPoint - container point of the event
124
- * @property {Point } viewPoint - view point of the event
125
- * @property {Event } domEvent - dom event
126
- */
127
- /**
128
- * mouseover event for geometry
129
- * @event Geometry#mouseover
130
- * @type {Object }
131
- * @property {String } type - mouseover
132
- * @property {Geometry } target - the geometry fires mouseover
133
- * @property {Coordinate } coordinate - coordinate of the event
134
- * @property {Point } containerPoint - container point of the event
135
- * @property {Point } viewPoint - view point of the event
136
- * @property {Event } domEvent - dom event
137
- */
138
- /**
139
- * mouseout event for geometry
140
- * @event Geometry#mouseout
141
- * @type {Object }
142
- * @property {String } type - mouseout
143
- * @property {Geometry } target - the geometry fires mouseout
144
- * @property {Coordinate } coordinate - coordinate of the event
145
- * @property {Point } containerPoint - container point of the event
146
- * @property {Point } viewPoint - view point of the event
147
- * @property {Event } domEvent - dom event
148
- */
116
+ /**
117
+ * mouseenter event for geometry
118
+ * @event Geometry#mouseenter
119
+ * @type {Object }
120
+ * @property {String } type - mouseenter
121
+ * @property {Geometry } target - the geometry fires mouseenter
122
+ * @property {Coordinate } coordinate - coordinate of the event
123
+ * @property {Point } containerPoint - container point of the event
124
+ * @property {Point } viewPoint - view point of the event
125
+ * @property {Event } domEvent - dom event
126
+ */
127
+ /**
128
+ * mouseover event for geometry
129
+ * @event Geometry#mouseover
130
+ * @type {Object }
131
+ * @property {String } type - mouseover
132
+ * @property {Geometry } target - the geometry fires mouseover
133
+ * @property {Coordinate } coordinate - coordinate of the event
134
+ * @property {Point } containerPoint - container point of the event
135
+ * @property {Point } viewPoint - view point of the event
136
+ * @property {Event } domEvent - dom event
137
+ */
138
+ /**
139
+ * mouseout event for geometry
140
+ * @event Geometry#mouseout
141
+ * @type {Object }
142
+ * @property {String } type - mouseout
143
+ * @property {Geometry } target - the geometry fires mouseout
144
+ * @property {Coordinate } coordinate - coordinate of the event
145
+ * @property {Point } containerPoint - container point of the event
146
+ * @property {Point } viewPoint - view point of the event
147
+ * @property {Event } domEvent - dom event
148
+ */
149
149
150
150
class MapGeometryEventsHandler extends Handler {
151
151
@@ -200,8 +200,7 @@ class MapGeometryEventsHandler extends Handler {
200
200
if ( ! actual ) {
201
201
return ;
202
202
}
203
- const containerPoint = getEventContainerPoint ( actual , map . _containerDOM ) ,
204
- coordinate = map . containerPointToCoordinate ( containerPoint ) ;
203
+ const containerPoint = getEventContainerPoint ( actual , map . _containerDOM ) ;
205
204
if ( eventType === 'touchstart' ) {
206
205
preventDefault ( domEvent ) ;
207
206
}
@@ -229,7 +228,7 @@ class MapGeometryEventsHandler extends Handler {
229
228
} ,
230
229
'count' : 1 ,
231
230
'containerPoint' : containerPoint ,
232
- 'onlyVisible' : map . options [ 'onlyVisibleGeometryEvents' ] ,
231
+ 'onlyVisible' : map . options [ 'onlyVisibleGeometryEvents' ] ,
233
232
'layers' : layers
234
233
} ;
235
234
const callback = fireGeometryEvent . bind ( this ) ;
@@ -269,8 +268,8 @@ class MapGeometryEventsHandler extends Handler {
269
268
270
269
const oldTargets = this . _prevOverGeos && this . _prevOverGeos . geos ;
271
270
this . _prevOverGeos = {
272
- 'geos' : geometries ,
273
- 'geomap' : geoMap
271
+ 'geos' : geometries ,
272
+ 'geomap' : geoMap
274
273
} ;
275
274
if ( oldTargets && oldTargets . length > 0 ) {
276
275
for ( let i = oldTargets . length - 1 ; i >= 0 ; i -- ) {
@@ -311,7 +310,7 @@ class MapGeometryEventsHandler extends Handler {
311
310
312
311
Map . mergeOptions ( {
313
312
'geometryEvents' : true ,
314
- 'onlyVisibleGeometryEvents' : true
313
+ 'onlyVisibleGeometryEvents' : true
315
314
} ) ;
316
315
317
316
Map . addOnLoadHook ( 'addHandler' , 'geometryEvents' , MapGeometryEventsHandler ) ;
0 commit comments