mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Changing 'maxzoom' property of PostGIS layer not reflected in style #719

Open stevage opened 10 years ago

stevage commented 10 years ago

I'm just trying Mapbox Studio for the first time. I created a source project with a couple of layers connected to a PostGIS server over the net, and it renders like this:

screenshot 2014-08-25 17 00 01

After some investigation, I think the workflow that causes this problem is:

  1. Create PostGIS datasource, leaving default maxzoom (6)
  2. Do Create style from this source
  3. Add styling code
  4. Go back and change the maxzoom property to something bigger. Save.
  5. In the style project, refresh, but the new maxzoom is not taken into account.

There are other, possibly related problems:

screenshot 2014-08-25 17 03 32

If it's too early for me to be reporting bugs like this, please let me know and I'll go away and come back in a few months :) Looks absolutely awesome though, and I really dig the separation of data sources and style projects.

Version 0.0.3 on OS X.

yhahn commented 10 years ago

@stevage you probably need to

  1. bump up the maxzoom of your source and save,
  2. click Refresh in the layers panel of your style to clear any cached data

More info here on how maxzoom affects your source data https://www.mapbox.com/mapbox-studio/source-manual/#overzooming

stevage commented 10 years ago

I did click refresh, and I've just tested again now, no good.

samanpwbb commented 10 years ago

With #844 ambiguities around whether a change to a layer is applied or not would go away.

I'm not sure what this source is supposed to look like @stevage so I can't say if there are other bugs at play here as well.