Skip to content

Instantly share code, notes, and snippets.

@squio
Last active April 30, 2021 08:58
Show Gist options
  • Save squio/21616c5d5c1d43f181941dd2619d52f3 to your computer and use it in GitHub Desktop.
Save squio/21616c5d5c1d43f181941dd2619d52f3 to your computer and use it in GitHub Desktop.
// Insert geoseach JS after leaflet JS files from yii2-leaflet-extension
// https://github.com/2amigos/yii2-leaflet-extension
// https://github.com/smeijer/leaflet-geosearch
$this->registerJsFile('https://unpkg.com/[email protected]/dist/geosearch.umd.js', [
'depends' => [\dosamigos\leaflet\LeafLetAsset::class]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment