diff --git a/Gruntfile.js b/Gruntfile.js index 741a24c..f986f50 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -18,7 +18,8 @@ module.exports = function(grunt) { }, browserify: { dist: { - src: ['src/**/*.js'], + //src: ['src/**/*.js'], + src: ['src/overrides.js'], dest: 'dist/<%= pkg.name%>-<%= pkg.version%>.js' } }, diff --git a/example/example.js b/example/example.js index 48a18b9..cd7c376 100644 --- a/example/example.js +++ b/example/example.js @@ -1,4 +1,14 @@ var map; $(document).ready(function() { map = L.mapbox.map('map', 'reprojected.g9on3k93').setView([0, 0], 3); + poly = new L.Polygon( new L.LatLng( 0,0 ), new L.LatLng( 0,1 ), new L.LatLng( 1,1 ),new L.LatLng( 1,0 ), new L.LatLng( 0, 0 ) ); + poly.toInheritString(); + + var lyrs = map.listTileLayers(); + var lyrs = map.listVectorLayers(); + var lyrs = map.listMarkerLayers(); + var lyrs = map.listGroupLayers(); + + console.log( map.getLayerByID( 20 ) ); + console.log( map.getLayerByRef( map.getLayerByID( 20 ) ) ); }); diff --git a/example/index.html b/example/index.html index 5d1a765..8293d09 100644 --- a/example/index.html +++ b/example/index.html @@ -25,9 +25,10 @@
- - - - + + + + +