-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
151 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 2, | ||
"name": "ootb/openstreetmap", | ||
"version": "2.4.1", | ||
"title": "OpenStreetMap by Out of the Block", | ||
"category": "common", | ||
"icon": "location-alt", | ||
"description": "A map block for the Gutenberg Editor using OpenStreetMaps and Leaflet that needs no API keys and works out of the box.", | ||
"supports": { | ||
"html": false, | ||
"align": [ | ||
"wide", | ||
"full" | ||
] | ||
}, | ||
"keywords": [ | ||
"Map block", | ||
"Open Street Maps", | ||
"Contact", | ||
"Locations" | ||
], | ||
"attributes": { | ||
"mapHeight": { | ||
"type": "integer", | ||
"default": 400 | ||
}, | ||
"markers": { | ||
"type": "array", | ||
"default": [] | ||
}, | ||
"zoom": { | ||
"type": "integer", | ||
"default": 8 | ||
}, | ||
"minZoom": { | ||
"type": "integer", | ||
"default": 2 | ||
}, | ||
"maxZoom": { | ||
"type": "integer", | ||
"default": 18 | ||
}, | ||
"dragging": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"touchZoom": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"doubleClickZoom": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"scrollWheelZoom": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"defaultIcon": { | ||
"type": "object", | ||
"default": null | ||
}, | ||
"keywords": { | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"showDefaultBounds": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"bounds": { | ||
"type": "array", | ||
"default": [ | ||
[ | ||
37.97155174977503, | ||
23.72656345367432 | ||
] | ||
] | ||
}, | ||
"provider": { | ||
"type": "string", | ||
"default": "openstreetmap" | ||
}, | ||
"mapboxStyleUrl": { | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"mapType": { | ||
"type": "string", | ||
"default": "marker" | ||
}, | ||
"showMarkers": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"shapeColor": { | ||
"type": "string", | ||
"default": "#008EFF" | ||
}, | ||
"shapeWeight": { | ||
"type": "integer", | ||
"default": 3 | ||
}, | ||
"shapeText": { | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"isDraggingMarker": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"openAImode": { | ||
"type": "string", | ||
"default": "" | ||
}, | ||
"queryArgs": { | ||
"type": "object", | ||
"default": { | ||
"post_type": "post" | ||
} | ||
}, | ||
"serverSideRender": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"showMapData": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"showSearchBox": { | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"queryCustomFields": { | ||
"type": "boolean", | ||
"default": false | ||
} | ||
}, | ||
"textdomain": "ootb-openstreetmap", | ||
"editorScript": "file:../index.js", | ||
"editorStyle": "file:../index.css", | ||
"style": "file:./style-index.css" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters