问题
it seems that the Geovisualization is not compatible with the JS Framework 3.1 of your mapping SDK. Are you planning on updating it ? Or can you provide a replacement ?
Here is the link to the doc used: https://developer.here.com/documentation/geovisualization/dev_guide/topics/overview.html
It supposed to be used by adding this Script :
<script type="text/javascript" src="https://js.cit.datalens.api.here.com/2.6.1/mapsjs-datalens.js"></script>
And the error with the new version:
Uncaught TypeError: Cannot read property 'RenderEngine' of undefined
at Object.<anonymous> (mapsjs-datalens.js:12)
at e (mapsjs-datalens.js:8)
at Object.<anonymous> (mapsjs-datalens.js:12)
at e (mapsjs-datalens.js:8)
at Object.<anonymous> (mapsjs-datalens.js:12)
at e (mapsjs-datalens.js:8)
at Object.<anonymous> (mapsjs-datalens.js:8)
at e (mapsjs-datalens.js:8)
at mapsjs-datalens.js:8
at mapsjs-datalens.js:8
回答1:
Unfortunately the Geovisualization API is not compatible with latest HERE JavaScript API 3.1 and there is no plan to update it.
But current HERE JavaScript API
is capable of 95% Geovisualization use-cases.
Here is jsfiddle example for animated markers example (based on Geovisualization example)
回答2:
Unfortunately no, Geovisualization/Data Lens API is not compatible with JS API 3.1. At the moment there are no plans to update or replacing the same.
来源:https://stackoverflow.com/questions/59993889/is-geovisualization-api-compatible-with-javascript-3-1-sdk