resolve some errors in php logic, like strlen with str containing space that is interpreted as array instead of string
This commit is contained in:
22
plug/map_prof/styles/mp__style.css
Normal file
22
plug/map_prof/styles/mp__style.css
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
@import "mp_info_windows.css";
|
||||
@import "mp_zoom.css";
|
||||
@import "mp_filters.css";
|
||||
|
||||
#ljdp_map_wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#ljdp_map {
|
||||
height: 600px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (max-width: 700px) {
|
||||
#ljdp_map {
|
||||
height: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
146
plug/map_prof/styles/mp_filters.css
Normal file
146
plug/map_prof/styles/mp_filters.css
Normal file
@@ -0,0 +1,146 @@
|
||||
|
||||
/*
|
||||
* FILTERS
|
||||
*/
|
||||
|
||||
/*
|
||||
#ba197a;
|
||||
*/
|
||||
|
||||
/* **************************************
|
||||
GENERAL SETTINGS
|
||||
*/
|
||||
|
||||
/*
|
||||
*/
|
||||
#ljdp_map_filters,
|
||||
#ljdp_map_filters * {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
position: relative;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#ljdp_map_filters {
|
||||
display: flex !important;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
gap: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#ljdp_map_filters .filter_menu {
|
||||
display: flex !important;
|
||||
width: auto;
|
||||
cursor: pointer;
|
||||
border-radius: 3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
DROP DOWN MENU
|
||||
*/
|
||||
|
||||
/*
|
||||
*/
|
||||
#ljdp_map_filters .filter_menu_drop {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin: 0px;
|
||||
padding: 5px;
|
||||
font-size: 100%;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
border: 1px solid #ba197a;
|
||||
}
|
||||
#ljdp_map_filters .filter_menu_drop option {
|
||||
font-size: 100%;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
MENU CHECKBOX
|
||||
*/
|
||||
|
||||
#ljdp_map_filters .filter_menu_checkbox p {
|
||||
--size: 16px;
|
||||
--left-offset: calc( var(--size) + 5px );
|
||||
margin-left: var(--left-offset);
|
||||
}
|
||||
|
||||
#ljdp_map_filters .filter_menu_checkbox p::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: calc( 50% - var(--size) / 2 - 1px );
|
||||
left: calc( var(--left-offset) * -1 );
|
||||
border: 1px solid #ba197a;
|
||||
border-radius: 3px;
|
||||
box-sizing: border-box;
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
}
|
||||
|
||||
#ljdp_map_filters input.filter_menu_checkbox:checked
|
||||
+ label.filter_menu_checkbox p::before {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
#ljdp_map_filters input.filter_menu_checkbox:disabled
|
||||
+ label.filter_menu_checkbox {
|
||||
cursor: default;
|
||||
}
|
||||
#ljdp_map_filters input.filter_menu_checkbox:disabled
|
||||
+ label.filter_menu_checkbox p::before {
|
||||
border-color: #ccc;
|
||||
background-color: #ccc;
|
||||
}
|
||||
#ljdp_map_filters input.filter_menu_checkbox:disabled
|
||||
+ label.filter_menu_checkbox p {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
MENU RESET
|
||||
*/
|
||||
|
||||
#ljdp_map_filters .filter_menu_reset {
|
||||
/*
|
||||
flex-shrink: 2;
|
||||
white-space: nowrap;
|
||||
*/
|
||||
border: 1px solid #ba197a;
|
||||
background-color: #ba197a;
|
||||
color: #fff;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
RESONSIVE DESIGN
|
||||
*/
|
||||
|
||||
|
||||
@media only screen and (max-width: 700px) {
|
||||
#ljdp_map_filters {
|
||||
flex-wrap: wrap;
|
||||
margin: 10px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
187
plug/map_prof/styles/mp_info_windows.css
Normal file
187
plug/map_prof/styles/mp_info_windows.css
Normal file
@@ -0,0 +1,187 @@
|
||||
|
||||
/*
|
||||
* INFO WINDOW
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
GOOGLE WINDOW
|
||||
*/
|
||||
|
||||
div.gm-style-iw.gm-style-iw-c {
|
||||
padding: 0px !important;
|
||||
background-color: transparent;
|
||||
pointer-events: none;
|
||||
box-shadow: 0 2px 7px 1px rgba(0,0,0,.3);
|
||||
box-shadow: none;
|
||||
border-radius: 0 !important;
|
||||
max-width: 75vw !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
GOOGLE TRIANGLE
|
||||
*/
|
||||
|
||||
.gm-style-iw-tc {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
GOOGLE CROICE
|
||||
*/
|
||||
|
||||
button.gm-ui-hover-effect {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
CONTENT
|
||||
*/
|
||||
|
||||
#infowindow_limits,
|
||||
#infowindow_limits * {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
position: relative;
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#infowindow_limits {
|
||||
/* height must be twice js 'height' value (mp_info_windows.js -> '{ ... height: XXX }' */
|
||||
height: 550px;
|
||||
max-width: 380px;
|
||||
flex-direction: column;
|
||||
pointer-events: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#infowindow_limits .infowindow {
|
||||
pointer-events: auto;
|
||||
height: auto;
|
||||
max-height: 400px;
|
||||
padding: 0px;
|
||||
overflow: scroll;
|
||||
flex-direction: column;
|
||||
border-radius: 3px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#infowindow_limits #infowindow_close {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: 0px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#infowindow_limits #infowindow_close::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: calc(50% - 0.8px);
|
||||
left: 25%;
|
||||
width: 50%;
|
||||
height: 1.6px;
|
||||
background-color: #fff;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
#infowindow_limits #infowindow_close::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: calc(50% - 0.8px);
|
||||
left: 25%;
|
||||
width: 50%;
|
||||
height: 1.6px;
|
||||
background-color: #fff;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
#infowindow_limits .infowindow_head {
|
||||
padding: 5px 10px;
|
||||
margin: 0px;
|
||||
background-color: #ab197a;
|
||||
}
|
||||
|
||||
#infowindow_limits .infowindow_head p {
|
||||
font-size: 115%;
|
||||
font-weight: 500;
|
||||
line-height: 1.7em;
|
||||
color: #fff;
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
#infowindow_limits .infowindow_body {
|
||||
padding: 10px 10px 10px 10px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#infowindow_limits .infowindow_body::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
left: 0px;
|
||||
margin: 0px;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
#infowindow_limits .infowindow_body p {
|
||||
font-size: 115%;
|
||||
font-weight: 500;
|
||||
line-height: 1.7em;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
HIDE SCROLL BARS
|
||||
*/
|
||||
/* chrome safari opera */
|
||||
.gm-style-iw-d::-webkit-scrollbar,
|
||||
#infowindow_limits::-webkit-scrollbar,
|
||||
#infowindow_limits .infowindow::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.gm-style-iw-d,
|
||||
#infowindow_limits,
|
||||
#infowindow_limits .infowindow {
|
||||
-ms-overflow-style: none; /* Ie edge */
|
||||
scrollbar-width: none; /* firefox */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* **************************************
|
||||
MOBILE RESPONSIVE
|
||||
*/
|
||||
|
||||
@media only screen and (max-width: 400px) {
|
||||
#infowindow_limits .infowindow_body p,
|
||||
#infowindow_limits .infowindow_head p {
|
||||
font-size: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
24
plug/map_prof/styles/mp_zoom.css
Normal file
24
plug/map_prof/styles/mp_zoom.css
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
/*
|
||||
* ZOOM BUTTONS
|
||||
*/
|
||||
|
||||
|
||||
/* hide the rectangular box container
|
||||
div.gmnoprint div {
|
||||
visibility: hidden;
|
||||
}
|
||||
*/
|
||||
/* shape buttons in circles
|
||||
button.gm-control-active {
|
||||
visibility: visible;
|
||||
border-radius: 50% !important;
|
||||
background-color: rgb(255, 255, 255) !important;
|
||||
}
|
||||
*/
|
||||
/* gap between the buttons
|
||||
button.gm-control-active ~ div {
|
||||
height: 10px !important;
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user