Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: load EarthEngine directly from node_modules browser build #50

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Apr 2, 2019

I think the issue here was with babel and webpack running on the closure-compiler-processed file we copied into src, but I managed to fix it just by directly loading the ee_api_js.js file from the @google/earthengine package. This is the one built for browsers (the default export is built for npm).

This fixes the error in DHIS2-6507 and allows EarthEngine layers to load both in plugins and in the main app.

@amcgee amcgee requested a review from turban April 2, 2019 11:52
@turban turban merged commit 020ea5f into master Apr 2, 2019
@turban turban deleted the fix/ee-array-in-error branch April 2, 2019 11:58
dhis2-bot added a commit that referenced this pull request Dec 10, 2020
# [31.1.0](v31.0.3...v31.1.0) (2020-12-10)

### Bug Fixes

* fitbounds, on layergroup and in general ([0e83006](0e83006))
* load EarthEngine directly from node_modules browser build ([#50](#50)) ([020ea5f](020ea5f))
* override circle getBounds before map is bound ([#54](#54)) ([481c187](481c187))
* support index re-ordering ([20975bc](20975bc))

### Features

* event polygons ([#52](#52)) ([c2debad](c2debad))
* export map control types ([#74](#74)) ([71e597a](71e597a))
* export supported layer types ([#73](#73)) ([6bde95c](6bde95c))
* layer types as static method ([#66](#66)) ([bb124bf](bb124bf))
* support generic layer group ([89d9156](89d9156))
* synced maps support ([#58](#58)) ([0cd7eae](0cd7eae))
* synchronize the view of two maps ([#56](#56)) ([7dbffe3](7dbffe3))
* translate options to leaflet syntax ([#75](#75)) ([f1a3245](f1a3245))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants