0

I am using 2.22.0 version of qgis2web plugin and when the plugin provide the address search box that is placed on the right side of the screen. I am using Leaflet map. Now I want to edit the script and move my searchbox to the left side of screen. My question is which script and which part of code I need to change in order to solve my problem? I searched for it in js folder but with no success.

1

Open index.html in a text editor, and search for L.Control.OSMGeocoder(). Add options inside the parentheses: L.Control.OSMGeocoder({position: 'topright'}). The position values you can use are listed at http://leafletjs.com/reference-1.2.0.html#control.

  • I have just changed it to ({position: 'topleft'}) – user104851 Sep 3 '17 at 8:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.