prettier vector example

This commit is contained in:
Mourner 2011-06-21 18:26:39 +03:00
parent d63d39cabf
commit 5772c995f3

View File

@ -33,9 +33,8 @@
var circleLocation = new L.LatLng(51.508, -0.11), var circleLocation = new L.LatLng(51.508, -0.11),
circleOptions = { circleOptions = {
color: 'red', color: 'red',
fillColor: 'blue', fillColor: 'yellow',
fillOpacity: 0.7, fillOpacity: 0.7
weight: 20
}; };
var circle = new L.Circle(circleLocation, 500000, circleOptions); var circle = new L.Circle(circleLocation, 500000, circleOptions);
@ -69,7 +68,7 @@
var polygon = new L.Polygon([polygonPoints, holePoints], { var polygon = new L.Polygon([polygonPoints, holePoints], {
fillColor: "#333", fillColor: "#333",
weight: 20 color: 'green'
}); });
map.addLayer(polygon); map.addLayer(polygon);