robertleeplummerjr / Leaflet.glify

fully functional, ridiculously fast web gl renderer plugin for leaflet
https://robertleeplummerjr.github.io/Leaflet.glify
MIT License
482 stars 85 forks source link

L.glify.shader.fragment.square does not work #7

Open scottxu opened 7 years ago

scottxu commented 7 years ago
L.glify.points({
  map: map,
  click: function (e, point, xy) {
    //set up a standalone popup (use a popup as a layer)
    L.popup()
        .setLatLng(point)
        .setContent("marker longitude:" + point[L.glify.longitudeKey] + ', latitude:' + point[L.glify.latitudeKey])
        .openOn(map);

    console.log(point);
  },
  data: JSON.parse(points),
  color: function(){return {r: 0, g: 0, b: 0}},
  size: 10,
  vertexShaderSource: function() { return L.glify.shader.vertex; },
  fragmentShaderSource: function() { return L.glify.shader.fragment.square; }
});
trafficonese commented 5 months ago

This seems to be fixed with the current version.