GCRC / nunaliit

Nunaliit Atlas Framework
BSD 3-Clause "New" or "Revised" License
46 stars 15 forks source link

Zoom in too much on 'Add Layer' button #193

Open jpfiset opened 10 years ago

jpfiset commented 10 years ago

When a layer definition is present in a document, a button 'Add Layer' is provided in the atlas while that document is viewed.

If the layer definition refers to a layer that contains only one point, then the map is zoomed to far in.

A maximum zoom should be computed for the 'Add Layer' action.

jpfiset commented 10 years ago

This problem also occurs with 'Find On Map' button.

Restrict zoom level.