Comments (7)
It looks like that repo includes the built output as an (unminified) AMD module. That should be something that angular-esri-loader can load via loadModules
.
The question is, where should it be loaded from? If you download or npm install it, you'd have to specify a path to the file that is going to exist in the build output. Looks like angular-cli does have some config setting you can use to tell it which vendor files to include in the output. If you're not using angular-cli, then you'd have to figure out how to do that via whatever build system you're using. Either way, once you have the path, you would just configure dojo with the path so that it could be resolved like esriLoader.loadModules(['fcl/FlareClusterLayer_v4']).then(([FlareClusterLayer]) => {...})
.
@nickcam may have more ideas.
from angular-esri-loader.
Hi Guys,
I haven't used angular-esri-loader, just esri-system-js, so can't help with loading it using that sorry.
As Tom points out the built javascript amd module is included so any app (javascript or typescript) can load it up just like any other amd module.
I'm using it in an angular 4 app and I just copy the FlareClusterLayer_v4.ts file into my project so it gets compiled and built with the rest of the project. It's a bit crude but is simple and works. You just need to make sure you've got all of the esri and dojo modules it uses loaded in your project.
Really I should just create an npm package...one day maybe :).
Thanks,
Nick
from angular-esri-loader.
I'm using it in an angular 4 app and I just copy the FlareClusterLayer_v4.ts file into my project so it gets compiled and built with the rest of the project.
FYI I don't think that will work in an esri-loader app.
from angular-esri-loader.
Ok, fair enough. Best to stick with Tom's suggestions 😄.
from angular-esri-loader.
I'm having the exact same issue and would love to see how this works with an angular4 cli + esri-loader app.
from angular-esri-loader.
FYI - looks like @tomasvoj had success with the approach I suggested above in #32
In his case, he was using his own Dojo modules instead of third party ones like FlareClusterLayer, but the solution is the same.
from angular-esri-loader.
closing this since we're deprecating this repo (#37) and there are links to a few solutions above.
from angular-esri-loader.
Related Issues (20)
- Question: GIS centered application HOT 1
- The naming problem HOT 1
- Add Angular dependencies to `peerDependencies` HOT 3
- Allow Angular 2 or 4 HOT 3
- Having 2 package.json files and publishing from dist ain't all its cracked up to be HOT 5
- Unmet peer dependency HOT 1
- About Observable.fromEvent(this.mapView,"click") HOT 2
- Question - getting error with angular2-esri-loader with when trying to use js.arcgis.com/3.20/ HOT 2
- [Cannot read property 'setTransform' of undefined] in angular cli project HOT 1
- Cannot pan map in IE11 HOT 1
- Multiple components angular 2 + esri 3 + loader HOT 3
- Misaligned tiles with Angular4 HOT 2
- Question: add point to a map HOT 1
- angular2-esri-loader using Angular v2 error spears HOT 3
- click event on GraphicsLayer HOT 2
- Override ArcGIS JS API classes HOT 4
- Angular 5 is live HOT 1
- Where do we go from here? HOT 10
- Unload the loaded JS objects? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-esri-loader.