Giter Club home page Giter Club logo

lflt-core's Issues

Only 1 geojson layer is rendered when multiple layers are used

The following template will only render either layer1$ or layer2$:

<lflt-map class="map-container">
  <lflt-tile-layer [urlTemplate]="tileLayerUrl" [options]="tileLayerOptions"></lflt-tile-layer>

  <lflt-geojson-layer [geojson]="layer1$ | async" [options]="geojsonOptions">
  </lflt-geojson-layer>

  <lflt-geojson-layer [geojson]="layer2$ | async" [options]="geojsonOptions">
  </lflt-geojson-layer>
</lflt-map>

Supposedly, both geojson layers should be rendered.

Interactive Layers depending on another Interactive Layers observable throw error at start up

When using <lflt-interactive-layers [observable]="main">, the following error occured:

core.js:6241 ERROR TypeError: Cannot read property 'interactiveLayerDirectivesQueryList' of undefined
    at LeafletInteractiveObserverLayersDirective.get interactiveLayerDirectives [as interactiveLayerDirectives] (lflt-core.js:486)
    at LeafletInteractiveObserverLayersDirective.get areLayersReady [as areLayersReady] (lflt-core.js:316)
    at LeafletInteractiveObserverLayersDirective.ngAfterViewChecked (lflt-core.js:489)
    at callHook (core.js:4730)
    at callHooks (core.js:4690)
    at executeInitAndCheckHooks (core.js:4630)
    at refreshView (core.js:12088)
    at refreshEmbeddedViews (core.js:13404)
    at refreshView (core.js:12035)
    at refreshComponent (core.js:13458)

Leaflet cannot determine the correct window sizing information immediately in Ionic Framework

Facing the same issue described in Interacting with a Leaflet Map in an Ionic Framework PWA:

[...] Because Ionic Framework does some things at load time prior to the views being built, Leaflet cannot determine the correct window sizing information immediately. Because of this, some or all tiles may be missing from the view. To correct this, we can set a short timeout and invalidate the map size causing it to refresh.

To workaround this issue, the following was added after the map is instantiated

        setTimeout(() => {
            map.invalidateSize();
        }, 1000);

Clicking on any interactive layers causes endless broadcast when LeafletInteractiveObserverLayersDirective is used

This happens whenever LeafletInteractiveObserverLayersDirective that is dependent on LeafletInteractiveObservableLayersDirective is used as follows:

<lflt-map>
  <!-- LeafletInteractiveObservableLayersDirective -->
  <lflt-interactive-layers #main="observable">
    ...
  </lflt-interactive-layers>
</lflt-map>

<lflt-map>
  <!-- LeafletInteractiveObserverLayersDirective -->
  <lflt-interactive-layers [observable]="main">
    ...
  </lflt-interactive-layers>
</lflt-map>

The apps will stall and if javascript console is enabled, the log from the following code is repeatedly emitted:

console.log('LeafletInteractiveLayers::event changed', this.selectionProperties, thisLayer);

Publish package to GitHub Packages

The following commands will publish a new patch version package to GitHub Packages

npm --no-git-tag-version version patch
npm run deploy

After publishing the package, commit the changes, push the commit and create a release.

Synchronize tag with the release

git fetch --all --tags

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.