Giter Site home page Giter Site logo

Comments (8)

quentin-ol avatar quentin-ol commented on May 22, 2024 1

@alienlike My pleasure to help! As for the "vision" of the project, all opinions are welcome (encouraged even). Confronting ideas and proposals is always the best way forward so don't censor yourself, push PRs and let's find ways to get those features in the library!
Thanks again!

from ngx-openlayers.

FallenRiteMonk avatar FallenRiteMonk commented on May 22, 2024

Do you get the exact line number of the unexpected token?
Also give some more information on how to reproduce this issue:

  • Are you using the provided cli example in the code
  • Are you using your own example, if yes, how are you importing the library
  • Are you using AOT

from ngx-openlayers.

alienlike avatar alienlike commented on May 22, 2024

Currently trying to get the example running but have not been successful due to #30.

from ngx-openlayers.

alienlike avatar alienlike commented on May 22, 2024

The exception occurs on line number 1 of dist/index.js, which is bundled into vendor.js with Webpack. I am not using AOT.

I'm importing as follows:

  • import { AngularOpenlayersModule } from 'angular2-openlayers'; in my module
  • import { MapComponent, ViewComponent, LayerVectorComponent } from 'angular2-openlayers'; in my component

from ngx-openlayers.

alienlike avatar alienlike commented on May 22, 2024

@quentin-ol, @FallenRiteMonk Thanks for helping me out. I'm developing two apps concurrently, both using Angular 2 and OpenLayers. One is a fairly trivial map-based app, the other a significant effort that will be developed over a few years and eventually see thousands of users. I'm submitting PRs as I need new features, and will try to conform them to your vision for this project. I'm new to the entire stack (including OpenLayers), so I appreciate your help and patience. Hopefully as I learn more I can be an asset to the project.

from ngx-openlayers.

alienlike avatar alienlike commented on May 22, 2024

If I remove the line "module": "es2015" from tsconfig.json, the issue goes away.

Per https://www.typescriptlang.org/docs/handbook/compiler-options.html, module values "ES6" or "ES2015" may not be used in tandem with target "ES5".

from ngx-openlayers.

quentin-ol avatar quentin-ol commented on May 22, 2024

update: Investigating this next week.

from ngx-openlayers.

quentin-ol avatar quentin-ol commented on May 22, 2024

should be fixed with 0.5.0

from ngx-openlayers.

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.