Giter VIP home page Giter VIP logo

Comments (2)

vadym1930 avatar vadym1930 commented on August 22, 2024 1

Yeah, the thing is that https://js.api.here.com/v3/3.1/mapsjs-core.js is not there when https://js.api.here.com/v3/3.1/mapsjs-service.js already there. It's because of the core script really heavier compare ~261kb vs ~31.3kb. Solved the same issue with loading scripts synchronously.

Or just load core one, then does not matter, others can be loaded in parallel.

from maps-api-for-javascript-examples.

germanz avatar germanz commented on August 22, 2024

@vadym1930 suggestion is correct. All modules depend from mapsjs-core.js, so it has to be loaded first.

Alternatively, you can also use a single bundle mapsjs.bundle.js which contains all modules. It can be imported as an ES6 module. More on that here:
https://developer.here.com/documentation/maps/3.1.16.1/dev_guide/topics/get-started.html

from maps-api-for-javascript-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.