including external script results in error when trying to call a method
Tagged: external
-
Dinkel
ModeratorHas successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
5 years, 2 months ago #19988::I mean the order of loading the library parts. Look at this code snippet:
addScript('js/mapsjs-core.js', 'mapsjs-core'); addScript('js/mapsjs-mapevent.js', 'mapsjs-mapevent', ['mapsjs-core']); addScript('js/mapsjs-service.js', 'mapsjs-service', ['mapsjs-core']); addScript('js/mapsjs-ui.js', 'mapsjs-ui', ['mapsjs-core', 'mapsjs-mapevent', 'mapsjs-service']); addStyle('css/mapsjs-ui.css');
I don’t know if this is the right order because I don’t know the library.
If it’s a problem of generating the code then try deploying and look into index.html. Your library should be referenced there.
Dinkel
ModeratorHas successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
5 years, 2 months ago #19967::I think the problem is the order of loading your library.
Look at the documentation to learn how you control the order loading the library.5 years, 2 months ago #19968
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.