You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/03/27 19:31:10 UTC

[GitHub] [incubator-superset] hokieg3n1us opened a new issue #7146: Support for custom Mapbox Style in Visualizations

hokieg3n1us opened a new issue #7146: Support for custom Mapbox Style in Visualizations
URL: https://github.com/apache/incubator-superset/issues/7146
 
 
   In some environments, Mapbox is either not accessible, or not the best available option for base layers (on top of being a subscription based service). In this case, my company hosts it's own WMS maps that we'd like to use as the basemap within Superset. 
   
   Is it possible to support a "Custom" Map Style option, that'd allow a user to add their own style definition? For example: 
   
   ```javascript
   {
     "version": 8,
     "sources": {
       "wms-basemap": {
         "type": "raster",
         "tiles": [
           "https://ows.terrestris.de/osm/service?bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&width=256&height=256&styles=&layers=OSM-WMS"
         ],
         "tileSize": 256
       }
     },
     "layers": [
       {
         "id": "wms-osm",
         "type": "raster",
         "source": "wms-basemap",
         "source-layer": "wms-osm",
         "minzoom": 1,
         "maxzoom": 20
       }
     ]
   }
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org