We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce8d21 commit 69f104eCopy full SHA for 69f104e
src/lib/topojson_utils.js
@@ -13,7 +13,11 @@ topojsonUtils.getTopojsonName = function(geoLayout) {
13
};
14
15
topojsonUtils.getTopojsonPath = function(topojsonURL, topojsonName) {
16
- return topojsonURL + topojsonName + '.json';
+ if (topojsonURL.endsWith('/')) {
17
+ return topojsonURL + topojsonName + '.json';
18
+ } else {
19
+ return topojsonURL + '/' + topojsonName + '.json';
20
+ }
21
22
23
topojsonUtils.getTopojsonFeatures = function(trace, topojson) {
0 commit comments