performant-software / Neatline

A lightweight framework for building interactive maps and publishing them on the web.
www.neatline.org
Other
105 stars 34 forks source link

Max Zoom on all records after update #458

Open dleisawitz opened 6 years ago

dleisawitz commented 6 years ago

Question: Is there a way to change the MAX ZOOM level on all of the records at once in an exhibit?

Background: We just updated to Neatline 2.6.1 from 2.5 for . It seems that in this newer version of Neatline, the zoom function zooms in at smaller increments than in 2.5. So, while before a MAX ZOOM limit of 5 would bring the view in quite closely, now 5 clicks on the zoom button does not zoom you in nearly as close.

This is fine, except for the fact that all of my records are set at a max zoom level of 5. I now need to change all of them to 10, and I have hundreds of records.

Is there a way to reset the MAX ZOOM level on all of the records at once in a given exhibit?

Thank you, Dan http://www.furiosoatlas.com

rondauva commented 6 years ago

Hi Dan,

I think there are a couple of options.

First, you can set a min and max zoom for the entire exhibit under the style tab in the exhibit editor, and that may be all that you need.

But if you need records to have individual max zoom levels, the easiest way to override what's in individual records is to use the Neatline stylesheet. Docs on this are at http://docs.neatline.org/neatline-stylesheets.html. In the Stylesheet dialogue box, you can use the .all tag to pick up every record in the exhibit, and then use the max-zoom value to set a maximum zoom for all records to 10.

Please do let me know if you have problems or further questions!

Best, Ronda

dleisawitz commented 6 years ago

Dear Ronda,

Thank you for your rapid and helpful reply. I now realize what the issue is and the style tab took care of it.

Best wishes, Dan

On Tue, May 29, 2018 at 10:36 AM, Ronda notifications@github.com wrote:

Hi Dan,

I think there are a couple of options.

First, you can set a min and max zoom for the entire exhibit under the style tab in the exhibit editor, and that may be all that you need.

But if you need records to have individual max zoom levels, the easiest way to override what's in individual records is to use the Neatline stylesheet. Docs on this are at http://docs.neatline.org/ neatline-stylesheets.html. In the Stylesheet dialogue box, you can use the .all tag to pick up every record in the exhibit, and then use the max-zoom value to set a maximum zoom for all records to 10.

Please do let me know if you have problems or further questions!

Best, Ronda

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/scholarslab/Neatline/issues/458#issuecomment-392799917, or mute the thread https://github.com/notifications/unsubscribe-auth/AdB91cmxMTQEGu1CRvPwKQEapFF3w7Yjks5t3VzhgaJpZM4UPRfe .