Git Product home page Git Product logo

leaflet.canvas-markers's People

Contributors

crzo avatar ejuke avatar spaction avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaflet.canvas-markers's Issues

Support for marker shadows

Please, can you add support for marker shadows?

Just draw to canvas two images instead of one. Shadows are not used for optical illusions only. It can be used as kind of icon overlay, etc.

Thank you.

Unable to remove layer from map and add again

Hello!

On map zoom I removed a layer from a map, load data points then create and attach new layer again.

private mapZommed() {
  const markers = await this.getMarkers();

  if (this.markersLayer) {
    this.markersLayer.remove();
  }

  this.markersLayer = (L as any).canvasIconLayer({}).addTo(this.map);

  this.markersLayer.addMarkers(markers);
}

After calling to markersLayer.remove(); I'm getting this error:

TypeError: null is not an object (evaluating 'this._map.containerPointToLayerPoint')

circleMarker

When using a circleMarker I get the error:

Layer isn't a marker

Is this working on the latest leaflet?

Hi,
Installed this with npm and using with import 'leaflet-canvas-marker/dist/leaflet.canvas-markers.js'; (because import 'leaflet-canvas-marker' doesn't do the trick for some reason).

I've added the canvas to the map:
this.mapMarkerLayer = L.canvasIconLayer({}).addTo(this.map);

And getting this error on zoom in and out:

screen shot 2018-05-22 at 6 56 09 pm

When I try to add markers to it L.marker([location.lat, location.long]).addTo(this.mapMarkerLayer).bindPopup(location.name);, I get this error:

screen shot 2018-05-22 at 6 53 37 pm

bindPopup

Is it still possible to use L.marker leaflet calls such as bindPopup ?

layer without any marker crashed

I create L.canvasIconLayer and place it to the map. But without any marker because I plan to add markers later.

When I try to move or zoom map, it raise error: n._latlngMarkers is undefined in _redraw function. (line 10680)

Marker clustering

Is it support marker clustering?

I am developing a map with about 800,000 markers.
I am trying to use maker clustering technique.
But, this solution is looking good.
So, it will be better if this solution support marker clustering.

Efficient way to find and update marker

Is there an efficient way to find and update a marker? (either remove it or update its location)
Also, I am getting an error when calling removeLayer(markers)
Thank you,

Show text instead of image

Would it be possible to adjust the plugin to use text instead of an image ?
For example something like this plugin : Leaflet.LabelTextCollision

I kinda did it via PHP by creating a dynamic icon img for every L.circleMarker i want to show, but its very slow (it happens when you need to query 20000 zip codes).
posible

but it would be nice to have something like:
text: feature.properties.mytextstring

Error in Angular 6 app with canvasIconLayer function

I am using Leaflet.Canvas-Markers in an Angular 6 app working with leaflet 1.3.1 and I get the following error :
ERROR TypeError: leaflet__WEBPACK_IMPORTED_MODULE_5___default.a.canvasIconLayer is not a function

I imported leaflet.canvas-markers.js file in angular.json script field.

Readme.md outdated

The Readme.md installation instructions refer to a dist folder (link), which was removed in 8a243f2. I imported the file /src/plugin/leaflet.canvas-markers.js instead and I am getting the following error:

image

After some clicking around, obviously the /src/_full.js or /src/_standalong.js files have to get imported, but I could not yet figure out what rbush is or what the difference between the two is.

Updating the Readme.md would greatly improve getting started with Leaflet.Canvas-Markers.

Click listener/Mouse move listener

Is it very difficult to add click or mousemove listeners for those icon markers?

I mean there must be some projection between the containerpixel and raycasting into the virtual scene to detect a "hit".

I would love to see such feature in your plugin. I will try to make a pull request, but would like to discuss it with you first.

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.