MCPcopy Index your code
hub / github.com/plotly/plotly.js / convertStyleVal

Function convertStyleVal

src/plots/mapbox/mapbox.js:808–810  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

806
807// if style is part of the 'official' mapbox values, add URL prefix and suffix
808function convertStyleVal(val) {
809 return constants.styleUrlPrefix + val + '-' + constants.styleUrlSuffix;
810}
811
812function convertCenter(center) {
813 return [center.lon, center.lat];

Callers 1

getStyleObjFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…