When using a protobuf schema that contains messages with fields of types like int64
/sint64
and trying to visualize that with a custom renderer plugin, the decoded data that is passed to the renderer plugin contains fields with type number
instead of Long
from https://github.com/dcodeIO/Long.js/. I've been able to fix this in my local webapp by patching GeoJsonDataStoreHelper.js
with
var Protobuf = require("protobufjs");
var Long = require("long");
Protobuf.util.Long = Long;
Protobuf.configure();
Is there anything I can do to fix this without changing the code of the visualization library? Otherwise rendering on OLP won't work.