Skip to content

Commit

Permalink
Version 1.2 readme and asset updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gsarig committed Sep 26, 2020
1 parent 889e08a commit d7c2a04
Show file tree
Hide file tree
Showing 18 changed files with 178 additions and 1,167 deletions.
Binary file added .wordpress-org/screenshot-8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Instead of manually adding coordinates for each one of your markers, just click-
* Enable or disable double-click zoom.
* Enable or disable scroll wheel zoom.
* Set a minimum and maximum limit that the user can zoom on the frontend. Setting the same value to both fields will lock the zoom at that level.
* Support for MapBox, as an additional Layer Provider, using your own API key.

## Installation

Expand Down
4 changes: 2 additions & 2 deletions admin/Options.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function ootb_section_settings_cb( $args ) {
function ootb_options_page() {
add_submenu_page(
'options-general.php',
'Out of the Block',
'Out of the Block',
'Out of the Block: OpenStreetMap',
'OOTB OpenStreetMap',
'manage_options',
'ootb-openstreetmap',
[ $this, 'ootb_options_page_html' ]
Expand Down
13 changes: 13 additions & 0 deletions admin/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ootb_form {
max-width: 1400px;
}

.ootb_info {
padding: 1em 2em;
background: #fff;
Expand Down Expand Up @@ -30,6 +34,15 @@
font-size: 90%;
}

#ootb_form img {
max-width: 100%;
}

#ootb_form .submit {
border-top: 1px solid #ccc;
padding-top: 1em;
}

@media all and (min-width: 760px) {
#ootb_form form {
display: grid;
Expand Down
2 changes: 1 addition & 1 deletion assets/ootb-openstreetmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
maps.forEach(renderMap);

function renderMap(osmap) {
const provider = osmap.getAttribute('data-provider');
const provider = osmap.getAttribute('data-provider') || 'openstreetmap';
const escapedMarkers = osmap.getAttribute('data-markers');
const escapedDefaultIcon = osmap.getAttribute('data-marker');
const zoom = osmap.getAttribute('data-zoom');
Expand Down
943 changes: 1 addition & 942 deletions dist/blocks.build.js

Large diffs are not rendered by default.

147 changes: 1 addition & 146 deletions dist/blocks.editor.build.css

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

18 changes: 1 addition & 17 deletions dist/blocks.style.build.css
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
/**
* #.# Common SCSS
*
* Can include things like variables and mixins
* that are used across the project.
*/
/**
* #.# Styles
*
* CSS for both Frontend+Backend.
*/
.ootb-openstreetmap--map {
width: 100%; }
.ootb-openstreetmap--map .leaflet-popup-content {
width: 150px; }
.ootb-openstreetmap--map .leaflet-popup-content p {
margin: .5em 0; }
.ootb-openstreetmap--map{width:100%}.ootb-openstreetmap--map .leaflet-popup-content{width:150px}.ootb-openstreetmap--map .leaflet-popup-content p{margin:.5em 0}
Loading

0 comments on commit d7c2a04

Please sign in to comment.