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

Function _locationToFeature

test/jasmine/tests/geo_test.js:827–833  ·  view source on GitHub ↗
(topojson, loc, locationmode)

Source from the content-addressed store, hash-verified

825
826describe('geojson / topojson utils', function() {
827 function _locationToFeature(topojson, loc, locationmode) {
828 var trace = { locationmode: locationmode };
829 var features = topojsonUtils.getTopojsonFeatures(trace, topojson);
830
831 var feature = geoLocationUtils.locationToFeature(locationmode, loc, features);
832 return feature;
833 }
834
835 describe('should be able to extract topojson feature from *locations* items', function() {
836 var topojsonName = 'world_110m';

Callers 1

geo_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…