mapbox / mapbox-studio-classic

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

postgres schema #1519

Open mnameghi opened 8 years ago

mnameghi commented 8 years ago

Hi I have a layer in a different schema than "public" in postgres. Can I use this layer and how?

wheredoesyourmindgo commented 8 years ago

You can simply prefix the table name with the appropriate schema and '.' in SQL tab for the layer properties. (SELECT * FROM your_schema_here.favorite_table ) AS mb_layer

Additional information about using PostGIS with Mapbox Studio Classic can be found here PostGIS Manual