Giter Site home page Giter Site logo

Comments (7)

tomwayson avatar tomwayson commented on June 18, 2024

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.

nickcam avatar nickcam commented on June 18, 2024

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.

tomwayson avatar tomwayson commented on June 18, 2024

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.

nickcam avatar nickcam commented on June 18, 2024

Ok, fair enough. Best to stick with Tom's suggestions 😄.

from angular-esri-loader.

kevhae avatar kevhae commented on June 18, 2024

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.

tomwayson avatar tomwayson commented on June 18, 2024

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.

tomwayson avatar tomwayson commented on June 18, 2024

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)

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.