How to use @pluginjs/place-complete - 1 common examples

To help you get started, we’ve selected a few @pluginjs/place-complete examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluginjs / pluginjs / modules / map-picker / src / main.js View on Github external
initAutoComplete() {
    const $place = query(`.${this.classes.PLACE}`, this.$dropdown)

    const that = this
    this.PlaceComplete = new PlaceComplete($place, {
      onPlaceChange(place) {
        const lat = place.latitude
        const lng = place.longitude

        that.data.place = place.address
        that.createMarker({ lat, lng })
      }
    })
  }

@pluginjs/place-complete

A flexible modern place-complete js plugin.

GPL-3.0
Latest version published 2 years ago

Package Health Score

46 / 100
Full package analysis

Popular @pluginjs/place-complete functions

Similar packages