Search code examples
here-apihere-maps-rest

Is Geovisualization API compatible with JavaScript 3.1 SDK?


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

Solution

  • 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)