nens / lizard-catalogue

Lizard Catalogue
https://demo.lizard.net/catalogue/
0 stars 0 forks source link

The map of locations crashed when there is only one location resulted from the search #215

Closed hoanphungt closed 4 years ago

hoanphungt commented 4 years ago

Map crashed when only 1 location resulted from the API call. This is because in this case, the bounds of the map cannot be identified. The map in this case should take the resulted location as its center point with a certain zoom level.

hoanphungt commented 4 years ago

@Derryrover Hi Tom,

Would you have time to review the connected PR of this issue?

The map crashed when only 1 location is found from the search. For testing, you can either search for: Brink_Haarzuilens_DL_0051 or Ridderhoflaan, Overstort.

Kr, Hoan

Derryrover commented 4 years ago

Approved and ready to merge! Tested and works, reviewed code looks good. kr Tom

hoanphungt commented 4 years ago

Thanks Tom, I merged it