diff --git a/README.md b/README.md index aee9f653..e5d6ced2 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ See some basic examples: * [Tile zoom changer example](http://tombatossals.github.io/angular-leaflet-directive/examples/tiles-zoom-changer-example.html) * [Layers simple example](http://tombatossals.github.io/angular-leaflet-directive/examples/tiles-simple-example.html) * [Overlays simple example](http://tombatossals.github.io/angular-leaflet-directive/examples/overlays-simple-example.html) +* [ImageOverlay simple example](http://tombatossals.github.io/angular-leaflet-directive/examples/layers-imageoverlay-example.html) * [Single marker example](http://tombatossals.github.io/angular-leaflet-directive/examples/marker-example.html) * [Marker addition example](http://tombatossals.github.io/angular-leaflet-directive/examples/marker-add-example.html) * [Marker with label example](http://tombatossals.github.io/angular-leaflet-directive/examples/marker-label-example.html) diff --git a/doc/layers-attribute.md b/doc/layers-attribute.md index 984cca7a..2f4bf703 100644 --- a/doc/layers-attribute.md +++ b/doc/layers-attribute.md @@ -32,4 +32,21 @@ $scope.layers = { } ``` -We can see that the _layers_ definition is conformed by lot attributes that we are going to describe belo. When we associate that object with our _leaflet-directive_ the unidirectional relation will start, and the first layer will be shown on the map and a new layer-switcher-control will appear on our map. +We can see that the _layers_ definition is conformed by lot attributes that we are going to describe below. When we associate that object with our _leaflet-directive_ the unidirectional relation will start, and the first layer will be shown on the map and a new layer-switcher-control will appear on our map. + +The layer-switcher-control will only appear if there are more than one layer (baselayer or overlay) that could be changed interactively by the user, if there's only one layer, no control will be visible. + +BaseLayers are the main tiles shown in the map, they could be interactively changed by the user on the switch control if more than one is visible, but only one can be active at the time (input radio buttons on the control). Overlays are tiles that can be shown on the map overlapped to the main baselayer (normally they use transparency) and more than one can be active at the time (input checkbox buttons). More about these types of layers [here](http://leafletjs.com/reference.html#control-layers). + +* [Baselayer simple demo](http://tombatossals.github.io/angular-leaflet-directive/examples/layers-simple-example.html). +* [Overlays simple demo](http://tombatossals.github.io/angular-leaflet-directive/examples/overlays-simple-example.html). + +Types of layers +--------------- +We are not limited to one type of layers, we can define other types: + +* XYZ Layer. +* WMS Layer. +* WFS Layer. +* GoogleMaps Layer. +* MarkerCluster Layer.