diff --git a/docs/examples/layers-control/index.md b/docs/examples/layers-control/index.md index 99098f7e..cfcbc36d 100644 --- a/docs/examples/layers-control/index.md +++ b/docs/examples/layers-control/index.md @@ -63,7 +63,7 @@ Also note that when using multiple base layers, only one of them should be added Finally, you can style the keys when you define the objects for the layers. For example, this code will make the label for the grayscale map gray:
var baseMaps = {
-	"Grayscale": grayscale,
+	"<span style='color: gray'>Grayscale</span>": grayscale,
 	"Streets": streets
 };