soal / vue-mapbox-geocoder

Wrapper for vue-mapbox-geocoder
13 stars 22 forks source link

Added custom container support from @tpaksu branch and control positioning support from @lucadegasperi branch. #5

Closed tpaksu closed 3 years ago

tpaksu commented 5 years ago

With this pull, the plugin will have the option to place the input in another container element in the page or a different position on the owner map.

Usage:

<MglGeocoderControl
            :accessToken="accessToken"
            @results="handleSearch"
            container="geocoder_input_container"
            position="top-left"
        />

container: the id of the container element to put the input in. position: the position within the map boundaries,

Note: Can't be used together with container option. Container will override position.

tpaksu commented 3 years ago

Closing this as it's been open for 2 years, and I don't want my PR list crowded :)