a3b9493c57
Add support for polyline POIs just like in the good ol' Google Maps days. See #883. The format after this commit is: { id, x, y, z, text, color, polyline/polygon: [{ x, y, z }, ...] } Optional properties: - common ones like "icon" and "hovertext" - "strokeColor" (string), - "fill" (boolean) - "weight" (integer) Docs not included. Largely based on PR #1536 by @jsmienk. Closes #1456, closes #1536, closes #1643.
34 lines
683 B
JavaScript
34 lines
683 B
JavaScript
// This is just an example. You can run some scripts to generate regions that
|
|
/*
|
|
var groupName = "Regions";
|
|
var displayName = "Areas";
|
|
var world = "top";
|
|
|
|
markersDB[groupName] = {
|
|
"raw": [
|
|
{
|
|
"strokeColor": "#FF0000",
|
|
"strokeWeight": 2,
|
|
"fill": true,
|
|
"polyline" : [
|
|
{"x": 347, "y": 67, "z": 95},
|
|
{"x": 347, "y": 77, "z": 95},
|
|
{"x": 347, "y": 77, "z": 105},
|
|
{"x": 347, "y": 67, "z": 105},
|
|
{"x": 347, "y": 67, "z": 105}
|
|
]}
|
|
],
|
|
"name": groupName,
|
|
"created": false
|
|
}
|
|
|
|
markers[world].push(
|
|
{
|
|
"groupName": groupName,
|
|
"icon": "signpost_icon.png",
|
|
"createInfoWindow": false,
|
|
"displayName": displayName,
|
|
"checked": true
|
|
});
|
|
*/
|