diff --git a/README.md b/README.md index 1c80f93..dae7b79 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,22 @@ Normally, displaying data as longitude, latitude will cause a cartographer to cr Disclaimer: Displaying data in spherical mercator might also cause a cartographer to cry. -`show()` allows you to specify different tile layer URLs, CRS/EPSG codes, output files, etc. +#### Map Styles +`show(tiles='STRING')` allows you to specify different tile layer URLs, CRS/EPSG codes, output files, etc. + +Predefind tile servers are: + * osm + * osm_german + * osm_france + * mapquest open + * mapbox bright + * thunderforest_landscape + * esri_aerial + * stamen_wc + * stamen_toner + * esri_natgeo + * cartodb_positron + * esri_worldtopo ### IPython Notebook embedding Just use `mplleaflet.display()` to embed the interactive Leaflet map in an IPython notebook. diff --git a/examples/readme_example.html b/examples/readme_example.html index 0e29653..d3b3c6e 100644 --- a/examples/readme_example.html +++ b/examples/readme_example.html @@ -1,3 +1,5 @@ + +
@@ -5,7 +7,7 @@ #map0 { height:100%; } - + @@ -20,9 +22,9 @@ return feature.properties; }, pointToLayer: function (feature, latlng) { - var icon = L.divIcon({'html': feature.properties.html, - iconAnchor: [feature.properties.width / 2.0 , - feature.properties.height / 2.0], + var icon = L.divIcon({'html': feature.properties.html, + iconAnchor: [feature.properties.width / 2.0 , + feature.properties.height / 2.0], className: 'empty'}); // What can I do about empty? return L.marker(latlng, {icon: icon}); } @@ -31,4 +33,5 @@ map.fitBounds(gj.getBounds()); - \ No newline at end of file + +