hholzgra / maposmatic

Mirror of maposmatic repository at savannah.nongnu.org
GNU Affero General Public License v3.0
72 stars 13 forks source link

Prevent same input value for min and max latitude / longitude value #88

Open hholzgra opened 2 years ago

hholzgra commented 2 years ago

Right now it seems to be possible to select the same value for minimum and maximum latitude or longitude, leading to a "division by zero" error during rendering later.

The form validator should either prevent such invalid input, or should extend the render area to a minimum of e.g. one arc second, or an absolute size of e.g. ten by ten meters.

See e.g. http://print.get-map.org/maps/224899

hholzgra commented 2 years ago

See also https://github.com/hholzgra/ocitysmap/issues/54