Skip to content

Commit e7a6792

Browse files
author
Scott Farley
committed
remove map center from event
1 parent 489d18f commit e7a6792

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/events.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ MapboxEventManager.prototype = {
111111
if (!geocoder.options.proximity) proximity = null;
112112
else proximity = [geocoder.options.proximity.longitude, geocoder.options.proximity.latitude ];
113113

114-
var center = (geocoder._map) ? geocoder._map.getCenter() : {lat: null, lng: null};
115114
var zoom = (geocoder._map) ? geocoder._map.getZoom() : null;
116115
return {
117116
event: event,
@@ -128,8 +127,6 @@ MapboxEventManager.prototype = {
128127
limit: geocoder.options.limit,
129128
// routing: search.routing, //todo --> add to plugin
130129
queryString: geocoder.inputString,
131-
mapCenterLat: center.lat,
132-
mapCenterLng: center.lng,
133130
mapZoom: zoom,
134131
keyboardLocale: this.locale
135132
}

0 commit comments

Comments
 (0)