Code Monkey home page Code Monkey logo

Comments (6)

nickcam avatar nickcam commented on May 29, 2024 1

Oh yeah I see it now. In your example you need to instantiate it like this -
var layer = new FlareClusterLayer.FlareClusterLayer({options});

The module imported in the loadModules() call isn't the actual class. It contains the class inside it, so you need to reference the class by using <module>.<class>, ie: since you're using FlareClusterLayer as the module name then it is - FlareClusterLayer.FlareClusterLayer.

Let me know how you go.

from flareclusterlayer.

nickcam avatar nickcam commented on May 29, 2024

Hi @JinLongy, that error suggests that the class hasn't loaded correctly. Have you followed the esri-loader instructions here - https://github.com/Esri/esri-loader#configuring-dojo - to include the esri/extras package?

from flareclusterlayer.

JinLongy avatar JinLongy commented on May 29, 2024

But I can print this js object to access.
tim 20190112110828

from flareclusterlayer.

JinLongy avatar JinLongy commented on May 29, 2024

I deployed the official api to the local server and placed this file in the esri directory. It stands to reason that you should be able to access this file.

from flareclusterlayer.

JinLongy avatar JinLongy commented on May 29, 2024

Well, it’s ok now. thank you very much.

from flareclusterlayer.

nickcam avatar nickcam commented on May 29, 2024

Ok cool.

from flareclusterlayer.

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.