middleware for map styles and datasources