Skip to content

Commit

Permalink
Fixes a missing file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarig committed May 26, 2024
1 parent c43bb3b commit c5dbbc6
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 3 deletions.
144 changes: 144 additions & 0 deletions build/block/block.json
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"
}
4 changes: 4 additions & 0 deletions build/index-rtl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ootb-openstreetmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: A map block for the Gutenberg Editor using OpenStreetMaps and Leaflet that needs no API keys and works out of the box.
* Requires at least: 5.8.6
* Requires PHP: 7.4
* Version: 2.8.0
* Version: 2.8.1
* Author: Giorgos Sarigiannidis
* Author URI: https://www.gsarigiannidis.gr
* License: GPL-2.0-or-later
Expand All @@ -21,7 +21,7 @@
define( 'OOTB_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );

const OOTB_BLOCK_NAME = 'ootb/openstreetmap';
const OOTB_VERSION = '2.8.0';
const OOTB_VERSION = '2.8.1';
const OOTB_SCRIPT_VERSION = [
'leaflet' => '1.9.4',
'leaflet-gesture-handling' => '1.4.4',
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: Map, OpenStreetMap, Leaflet, Google Maps, block
Requires at least: 5.8.6
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 2.8.0
Stable tag: 2.8.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit c5dbbc6

Please sign in to comment.