Skip to content

Commit 95dfc4c

Browse files
committed
workaround for init map
1 parent 98d05fd commit 95dfc4c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

InputfieldGeocoder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157

158158
response($.map(data.matches, function(match) {
159159
var item = t.helper.match2item(match);
160-
item.total = data.matches.length;
160+
item.total = data.matches.length;
161161
return item;
162162
}));
163163
});
@@ -216,7 +216,7 @@
216216
if(data?.matches?.length) {
217217

218218
var item = data.matches[0];
219-
item.total = data.matches.length;
219+
item.total = data.matches.length;
220220

221221
t.setItem(
222222
t.helper.match2item( item ),
@@ -541,7 +541,7 @@
541541
}
542542

543543
// Run
544-
t.init();
544+
setTimeout(function (){ t.init(); }, 200);
545545
};
546546

547547
/**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ $pages->find('geocoder.proximity=52.473758|13.402580, limit=3');
9090
* @see Geocoder::statusMultipleResults
9191
*/
9292
$pages->find('geocoder.status=3'); // Status "On" and "SingleResult"
93-
$pages->find('geocoder.status&2|4'); // Status "SingleResult" and "MultipleResults"
93+
$pages->find('geocoder.status&2|4'); // Status "SingleResult" or "MultipleResults"
9494
```
9595

9696

0 commit comments

Comments
 (0)