django-osm-field
django-osm-field copied to clipboard
Decimal degrees coordinates ingored, showing only the nearest object
To reproduce: paste any decimal degrees coordinates under which there are no objects in OSM to the location field. 49.415248, 26.957707 for example.
Expected result: pointer put directly on these coordinates.
Actual result: pointer put on the nearest object (road, town) that can be several kilometres away.
I think it should be addressed in the django-osm-field because Nominatim's function is just different.
And _lat, _lon fields changes are ignored on the map in my case, is that a bug?
@netAction Do you have any input on this?
After deleting the display:none style from location_lat and location_lon fields the problem is less serious. Now it's just that map is not updated after coordinates are pasted. But it would be still much better if in case of raw coordinates input Nominatim wasn't touched at all. It looks more logical: if user pasted or typed in numbers he/she obviously wanted the pointer put on that place, not to search some nearest object.
I will try to take a look into this in a few days and fix it - please ping me if I forget.