rduivenvoorde / nominatim_locator_filter

5 stars 5 forks source link

Locator does not zoom properly to some locations #2

Closed dbobak closed 6 years ago

dbobak commented 6 years ago

For example, try to find "jegłowa" (it's a village in a south-western Poland). Locator finds the plase, but doble click zooms map out to the 1:4000000 scale. When using OSM place search plugin, zooming works perfectly.

QIGS 3.2.3 on Windows 10 Pro.

rduivenvoorde commented 6 years ago

@dbobak thanks for the report. The plugin is firing: http://nominatim.openstreetmap.org/search?format=json&q=jegłowa and zooming in based on: the 'type' of the result, being "administrative" in this case... see https://github.com/rduivenvoorde/nominatim_locator_filter/blob/master/nominatimfilter.py#L134

I now see that there is also a boundingbox in the result! I will update the plugin so it will use that one if it is available, and let you know.

rduivenvoorde commented 6 years ago

Ok, version 3.2.3 does now zoom to bbox. Closing this issue. Thanks for your comments.