First few points drawn using .pbf format

This commit is contained in:
vershwal
2018-05-30 01:21:27 +05:30
parent 39d5bed300
commit 652d2ed65f

View File

@@ -171,7 +171,7 @@ export function svgMvt(projection, context, dispatch) {
drawMvt.geojson(tile.toGeoJSON(x,y,z)).fitZoom();
break;*/
case '.pbf':
drawMvt.geojson(JSON.parse(collection)).fitZoom();
drawMvt.geojson(collection).fitZoom();
break;
case '.geojson':
case '.json':
@@ -235,7 +235,7 @@ export function svgMvt(projection, context, dispatch) {
};
})(f);
reader.readAsText(f);
reader.readAsArrayBuffer(f);
return this;
};