prettier vector example
This commit is contained in:
parent
d63d39cabf
commit
5772c995f3
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user