{"id":966,"date":"2023-11-30T10:08:47","date_gmt":"2023-11-30T10:08:47","guid":{"rendered":"https:\/\/ourlocality.org\/localdevelopmentplan\/?page_id=966"},"modified":"2023-11-30T13:20:36","modified_gmt":"2023-11-30T13:20:36","slug":"community-growing","status":"publish","type":"page","link":"https:\/\/ourlocality.org\/localdevelopmentplan\/all-categories\/community-growing\/","title":{"rendered":"Community Growing"},"content":{"rendered":"\n\n<div class=\"open-user-map \">\n\n  \n  \n    \n  \n  <!-- Map Container -->\n  <div class=\"oum-map-container\">\n    \n<div class=\"box-wrap map-size-fullwidth oum-regions-layout-1 \">\n      <div class=\"tab-wrap\">\n      <div class=\"oum-tabs\" id=\"nav-tab-20210929\" role=\"tablist\">\n                \n                    <div class=\"nav-item nav-link  change_region\" data-lat=\"55.989728912163\" data-lng=\"-2.5075718977403\" data-zoom=\"11.840078596486\" data-toggle=\"tab\" role=\"tab\">+<\/div>\n\n        \n                    <div class=\"nav-item nav-link  change_region\" data-lat=\"55.999414984066\" data-lng=\"-2.5240230560303\" data-zoom=\"14\" data-toggle=\"tab\" role=\"tab\">Dunbar<\/div>\n\n        \n                    <div class=\"nav-item nav-link  change_region\" data-lat=\"55.95809033149\" data-lng=\"-2.4495534394375\" data-zoom=\"12.407213125592\" data-toggle=\"tab\" role=\"tab\">Innerwick<\/div>\n\n        \n                    <div class=\"nav-item nav-link  change_region\" data-lat=\"55.936064988748\" data-lng=\"-2.4046594530058\" data-zoom=\"12.408341158553\" data-toggle=\"tab\" role=\"tab\">Oldhamstocks \/ Dunglass<\/div>\n\n        \n                    <div class=\"nav-item nav-link  change_region\" data-lat=\"55.957853311248\" data-lng=\"-2.5719887627079\" data-zoom=\"11.907174142257\" data-toggle=\"tab\" role=\"tab\">Stenton &amp; Spott<\/div>\n\n        \n                    <div class=\"nav-item nav-link  change_region\" data-lat=\"55.995667548864\" data-lng=\"-2.6394545111482\" data-zoom=\"13.405525345431\" data-toggle=\"tab\" role=\"tab\">Tyninghame<\/div>\n\n        \n                    <div class=\"nav-item nav-link  change_region\" data-lat=\"55.994038206067\" data-lng=\"-2.5670761114687\" data-zoom=\"13.405862022965\" data-toggle=\"tab\" role=\"tab\">West Barns<\/div>\n\n              <\/div>\n    <\/div>\n  \n  <div class=\"map-wrap\">\n    <div class=\"oum-loading-overlay\">\n      <div class=\"oum-loading-spinner\"><\/div>\n    <\/div>\n    <div id=\"map-20210929\" class=\"leaflet-map map-style_OpenStreetMap.Mapnik\" data-oum-tile-provider-container=\"openstreetmap\"><\/div>\n\n    \n    \n        \n              \n          \n              <div id=\"open-add-location-overlay\" class=\"open-add-location-overlay oum-hidden\" style=\"background-color: #a5911f\"><span class=\"btn_icon\">+<\/span><span class=\"btn_text\">Add location<\/span><\/div>\n\n          \n              \n      \n    \n          <div class=\"oum-map-filter-wrapper\">\n        \n                  <div class=\"oum-filter-controls active oum-hidden\">\n            <div class=\"oum-filter-toggle\"><\/div>\n            <div class=\"oum-filter-list\">\n              <div class=\"close-filter-list\">&#x2715;<\/div>\n              \n              <!-- Toggle All Checkbox -->\n                            \n              \n              \n                \n                <label>\n                  <input style=\"accent-color: #a5911f\" type=\"checkbox\" name=\"type\" value=\"60\" checked>\n                                      <img data-recalc-dims=\"1\" decoding=\"async\" alt=\"category icon\" src=\"https:\/\/i0.wp.com\/ourlocality.org\/localdevelopmentplan\/files\/2023\/11\/growing.png?w=650&#038;ssl=1\">\n                                    <span class=\"oum-filter-category-name\">Community Growing<\/span>\n                <\/label>\n\n                          <\/div>\n          <\/div>\n              <\/div>\n    \n          \n        \n          \n    <script type=\"text\/javascript\" id=\"oum-init-map\" data-category=\"functional\" class=\"cmplz-native\" data-oum-tile-provider=\"openstreetmap\">\n\n      map_el = `map-20210929`;\n\n      if(document.getElementById(map_el)) {\n        \/* Transfer PHP array to JS json *\/\n        var oum_all_locations = [{\"title\":\"Remove from housing\",\"lat\":\"55.995923166957\",\"lng\":\"-2.5357766018645\",\"zoom\":\"12\",\"geometry_type\":\"point\",\"geometry\":null,\"show_measurement\":false,\"category_color\":\"#a5911f\",\"content\":\"November 30, 2023 Remove from housing Theme: Urban Trees and Parklets Community Growing The Community Garden here has demonstrable public benefits and the site has limited scope for a large number of houses given the need for sound insulation a bund would occupy an unreasonable amount of valuable land. Read more remove-from-housing\",\"icon\":\"https:\/\/ourlocality.org\/localdevelopmentplan\/files\/2023\/11\/growing.png\",\"types\":[\"60\"],\"post_id\":\"869\",\"address\":\"\",\"text\":\"The Community Garden here has demonstrable public benefits and the site has limited scope for a large number of houses given the need for sound insulation a bund would occupy an unreasonable amount of valuable land.\",\"image\":\"\",\"audio\":\"\",\"video\":\"\",\"custom_fields\":[{\"index\":1698306605442,\"label\":\"Theme\",\"val\":[\"Urban Trees and Parklets\",\"Community Growing\"],\"fieldtype\":\"checkbox\",\"uselabelastextoption\":false,\"use12hour\":false,\"private\":false}],\"votes\":0,\"star_rating_avg\":0,\"star_rating_count\":0},{\"title\":\"Create New allotments\",\"lat\":\"55.990056423385\",\"lng\":\"-2.5580525763143\",\"zoom\":\"12\",\"geometry_type\":\"point\",\"geometry\":null,\"show_measurement\":false,\"category_color\":\"#a5911f\",\"content\":\"November 29, 2023 Create New allotments This area is ideal for allotments and community growing initiatives. Read more create-new-allotments\",\"icon\":\"https:\/\/ourlocality.org\/localdevelopmentplan\/files\/2023\/11\/growing.png\",\"types\":[\"60\"],\"post_id\":\"792\",\"address\":\"\",\"text\":\"This area is ideal for allotments and community growing initiatives.\",\"image\":\"\",\"audio\":\"\",\"video\":\"\",\"custom_fields\":[],\"votes\":0,\"star_rating_avg\":0,\"star_rating_count\":0}];\n\n        \/\/ Wait for the main initialization function to be available, then call it\n        function oumWaitForMainInit() {\n          if (typeof oumInitializeMap === 'function') {\n            console.log('\ud83d\uddfa\ufe0f Open User Map: Starting');\n            \n            \/\/ Initialize the map\n            oumInitializeMap();\n          } else {\n            setTimeout(oumWaitForMainInit, 100);\n          }\n        }\n        \n        setTimeout(oumWaitForMainInit, 100);\n      }\n\n    <\/script>\n\n    <script type=\"text\/javascript\" id=\"oum-inline-js\" \n      data-category=\"functional\" \n      class=\"cmplz-native\" \n      data-minify=\"0\"\n      data-no-optimize=\"1\"\n      data-no-defer=\"1\"\n      data-no-combine=\"1\"\n      data-cfasync=\"false\"\n      data-pagespeed-no-defer\n      data-boot=\"1\">\n\n      map_el = `map-20210929`;\n\n      if(document.getElementById(map_el)) {\n\n        \/\/ Wait for OUMLoader to be defined\n        function oumLoading() {\n          if (typeof OUMLoader !== 'undefined') {\n            \/\/ Initialize loader for this map\n            OUMLoader.initLoader(map_el);\n\n            \/\/ Add event listener for map initialization complete\n            document.addEventListener('oum:map_initialized', function(e) {\n              if (e.detail.mapId === map_el) {\n                OUMLoader.setMapInitialized(map_el);\n              }\n            });\n          } else {\n            \/\/ If OUMLoader is not yet defined, wait and try again\n            setTimeout(oumLoading, 100);\n          }\n        }\n\n        \/\/ OUM Loading Spinner\n        oumLoading();\n\n        \/\/ OUM inline JS variables\n        var mapStyle = `OpenStreetMap.Mapnik`;\n        var oum_tile_provider_mapbox_key = `pk.eyJ1IjoiaXN0aGF0YWJsdWV0aXQiLCJhIjoiY2xwazNiYjJuMDR0ZTJqcDdjbTE5ZDBtciJ9.FVDFQWp5xg-lFG98KtXvOg`;\n        var marker_icon_url = `https:\/\/ourlocality.org\/localdevelopmentplan\/files\/2023\/11\/rights.png`;\n        var marker_shadow_url = `https:\/\/ourlocality.org\/localdevelopmentplan\/wp-content\/plugins\/open-user-map-pro\/src\/leaflet\/images\/marker-shadow.png`;\n        var oum_enable_scrollwheel_zoom_map = false;\n        var oum_enable_cluster = true;\n        var oum_enable_fullscreen = true;\n\n        var oum_enable_searchbar = true;\n        var oum_searchbar_type = `address`;\n\n        var oum_geosearch_selected_provider = ``; \n        var oum_geosearch_provider = `osm`;\n        var oum_geosearch_provider_geoapify_key = ``;\n        var oum_geosearch_provider_here_key = ``;\n        var oum_geosearch_provider_mapbox_key = ``;\n        \n        var oum_enable_searchaddress_button = true;\n        var oum_searchaddress_label = `Search for address`;\n\n        var oum_enable_searchmarkers_button = true;\n        var oum_searchmarkers_label = `Find a proposal`;\n        var oum_searchmarkers_zoom = `16`;\n\n        var oum_enable_currentlocation = true;\n        var oum_action_after_submit = `text`;\n        var thankyou_redirect = ``;\n        var start_lat = Number(55.985899480597);\n        var start_lng = Number(-2.5261688232422);\n        var start_zoom = Number(12);\n        \n        var oum_enable_fixed_map_bounds = ``;\n        var oum_use_settings_start_location = true;\n        var oum_has_regions = true;\n        var oum_enable_multiple_marker_types = `false`;\n        var oum_hide_filterbox = false;\n        var oum_hide_location_popup = false;\n        var oum_enable_address = ``;\n        var oum_enable_address_autofill = ``;\n\n        \/\/ WordPress timezone for opening hours calculations\n        var oum_wordpress_timezone = `Europe\/London`;\n\n        \/\/ Custom Image data\n        var oum_custom_image_url = ``;\n        var oum_custom_image_bounds = {};\n        var oum_custom_image_hide_tiles = false;\n        var oum_custom_image_background_color = `#ffffff`;\n\n        var oum_location = {};\n        var oum_custom_css = '';\n        var oum_custom_script = '';\n        var oum_max_image_filesize = 10;\n        var oumMap;\n        var oumMap2;\n\n        \/**\n         * Conditional Field Feature\n         * \n         * @param {string} sourceField - The source field selector\n         * @param {string} targetField - The target field selector\n         * @param {array} condShow - The values that should show the target field\n         * @param {array|null} condHide - The values that should hide the target field. If empty\/null\/undefined, the field will be hidden when condShow is not met.\n         *\/\n        var oumConditionalField = (sourceField, targetField, condShow, condHide = null) => {\n            const sourceElements = document.querySelectorAll(sourceField); \/\/ Select all radios\/checkboxes or single select\n            const targetElementWrapper = document.querySelector(targetField)?.parentElement; \/* works with custom fields only *\/\n\n            \/\/ Check if both sourceElements and targetElementWrapper exist\n            if (!sourceElements.length) {\n                console.warn(`OUM: Source field(s) not found: ${sourceField}`);\n                return;\n            }\n\n            if (!targetElementWrapper) {\n                console.warn(`OUM: Target field wrapper not found: ${targetField}`);\n                return;\n            }\n\n            \/* Event listener for change *\/\n            const onChangeHandler = function() {\n                \/\/ Get selected values for checkboxes and single selected value for radios\/select\n                const selectedValues = Array.from(sourceElements)\n                    .filter(element => element.checked || element.tagName === 'SELECT')\n                    .map(element => element.value);\n\n                const selectedValue = selectedValues[0]; \/\/ For radios and selects, we use only the first (and only) value\n\n                console.log('OUM: run condition', {selectedValue, sourceField, targetField, condShow, condHide});\n                \n                \/\/ Show or hide target field based on the selected value(s)\n                if (condShow.includes(selectedValue)) {\n                    \/\/ Show the field if condShow condition is met\n                    targetElementWrapper.style.display = 'block';\n                } else if (condHide && Array.isArray(condHide) && condHide.length > 0 && condHide.includes(selectedValue)) {\n                    \/\/ Hide the field if condHide is provided and condition is met\n                    targetElementWrapper.style.display = 'none';\n                } else if (!condHide || (Array.isArray(condHide) && condHide.length === 0)) {\n                    \/\/ If condHide is empty\/null\/undefined, hide the field when condShow is not met\n                    targetElementWrapper.style.display = 'none';\n                }\n            };\n\n            \/* Attach the event listener to each radio\/checkbox or select *\/\n            sourceElements.forEach(element => {\n                element.addEventListener('change', onChangeHandler);\n            });\n\n            \/* Trigger initially *\/\n            onChangeHandler(); \/\/ Call it directly to set initial state\n        };\n\n        \/**\n         * Add Custom Styles\n         *\/\n        \n                            \/* custom color *\/\n          oum_custom_css += `\n            .open-user-map .add-location #close-add-location-overlay:hover {color: #a5911f !important}\n            .open-user-map .box-wrap .map-wrap .open-add-location-overlay {background-color: #a5911f !important}\n            .open-user-map .box-wrap .map-wrap .open-add-location-overlay:hover,\n            .open-user-map .box-wrap .map-wrap .open-add-location-overlay:active {background-color: #95831c !important}\n            .open-user-map .box-wrap .map-wrap .oum-filter-controls .oum-filter-list .close-filter-list:hover {color: #a5911f !important}\n            .open-user-map .oum-advanced-filter-button .oum-advanced-filter-content .close-advanced-filter:hover,\n            .open-user-map .oum-advanced-filter-panel .oum-advanced-filter-content .close-advanced-filter:hover {color: #a5911f !important}\n            .open-user-map input.oum-switch[type=\"checkbox\"]:checked + label::before {background-color: #a5911f !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location .oum-required-indicator {color: #a5911f !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location h2 {color: #a5911f !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location input[type=text]:focus,\n            .open-user-map .add-location .location-overlay-content #oum_add_location input[type=email]:focus,\n            .open-user-map .add-location .location-overlay-content #oum_add_location input[type=url]:focus,\n            .open-user-map .add-location .location-overlay-content #oum_add_location textarea:focus,\n            .open-user-map .add-location .location-overlay-content #oum_add_location select:focus {border-color: #a5911f !important; box-shadow: 0 0 0 2px #a5911f1a !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location_thankyou h3 {color: #a5911f !important}\n            .open-user-map .oum_location_text a {color: #a5911f !important}\n            .open-user-map .oum_location_text .oum_vote_button_wrap .oum_vote_button.voted {background: #a5911f !important; border-color: #a5911f !important;}\n            .open-user-map .oum-tabs {border-color: #a5911f !important}\n            .open-user-map .oum-tabs .nav-item:hover {color: #a5911f !important; border-color: #a5911f !important}\n            .open-user-map .oum-tabs .nav-item.active {color: #a5911f !important; border-color: #a5911f !important}\n            .open-user-map .box-wrap .map-wrap .oum-attribution a {color: #a5911f !important;}\n            \/* Submit Button *\/\n            .open-user-map .add-location .location-overlay-content #oum_add_location input[type=submit] {background-color: #a5911f !important; border-color: #a5911f !important;}\n            .open-user-map .add-location .location-overlay-content #oum_add_location input[type=submit]:hover,\n            .open-user-map .add-location .location-overlay-content #oum_add_location input[type=submit]:active {background-color: #95831c !important;}\n            \/* Message CTA Buttons *\/\n            .open-user-map .add-location .location-overlay-content #oum_add_location_thankyou button {background-color: #a5911f !important; border-color: #a5911f !important;}\n            .open-user-map .add-location .location-overlay-content #oum_add_location_thankyou button:hover,\n            .open-user-map .add-location .location-overlay-content #oum_add_location_thankyou button:active {background-color: #95831c !important;}\n            .open-user-map .add-location .location-overlay-content .oum-delete-confirmation button {background-color: #a5911f !important; border-color: #a5911f !important;}\n            .open-user-map .add-location .location-overlay-content .oum-delete-confirmation button:hover,\n            .open-user-map .add-location .location-overlay-content .oum-delete-confirmation button:active {background-color: #95831c !important;}\n            \/* Media Section Colors *\/\n            .open-user-map .add-location .location-overlay-content #oum_add_location .oum_media .media-upload label {color: #a5911f !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location .oum_media .oum-image-upload .media-upload-top label .multi-upload-indicator {background: #a5911f !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location .oum_media .oum-video-upload input[type=text]:hover {border-color: #a5911f !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location .oum_media .oum-video-upload input[type=text]:focus {border-color: #a5911f !important; box-shadow: 0 0 0 2px #a5911f1a !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location .oum_media .image-preview-placeholder {border-color: #a5911f !important; background: #a5911f0a !important}\n            .open-user-map .add-location .location-overlay-content #oum_add_location .oum_media .oum-image-preview-grid .image-preview-item.dragging {border-color: #a5911f !important}\n            \/* List Styles *\/\n            .open-user-map-locations-list .oum-locations-list-item .oum_location_text a {color: #a5911f !important} \n            .open-user-map-locations-list .oum-locations-list-item .oum_location_text .oum_vote_button_wrap .oum_vote_button.voted {background: #a5911f !important; border-color: #a5911f !important;}`;\n\n        \n        \n          \/* custom map height *\/\n          oum_custom_css += `\n            .open-user-map .box-wrap > .map-wrap {padding: 0 !important; height: 800px !important; aspect-ratio: unset !important;}`;\n\n        \n        \n        var custom_style = document.createElement('style');\n\n        if (custom_style.styleSheet) {\n          custom_style.styleSheet.cssText = oum_custom_css;\n        } else {\n          custom_style.appendChild(document.createTextNode(oum_custom_css));\n        }\n\n        document.getElementsByTagName('head')[0].appendChild(custom_style);\n\n        \/* Add initial CSS to prevent flash of unstyled content *\/\n        var initialStyles = document.createElement('style');\n        initialStyles.textContent = `\n          .oum-hidden {\n            opacity: 0 !important;\n            visibility: hidden !important;\n            transition: opacity 0.3s ease, visibility 0.3s ease;\n          }\n          .oum-filter-controls,\n          .open-add-location-overlay,\n          #oum_filter_markers,\n          .oum-advanced-filter-button,\n          .oum-advanced-filter-panel,\n          .oum-sidebar {\n            opacity: 0;\n            visibility: hidden;\n            transition: opacity 0.3s ease, visibility 0.3s ease;\n          }\n          .oum-filter-controls.visible,\n          .open-add-location-overlay.visible,\n          #oum_filter_markers.visible,\n          .oum-advanced-filter-button.visible,\n          .oum-advanced-filter-panel.visible,\n          .oum-sidebar.visible {\n            opacity: 1;\n            visibility: visible;\n          }\n        `;\n        document.head.appendChild(initialStyles);\n\n      }\n    <\/script>\n\n  <\/div>\n\n<\/div>\n  <\/div>\n\n<\/div>\n\n\n<div class=\"wp-block-cover alignfull\" style=\"min-height:100px;aspect-ratio:unset;\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-100 has-background-dim has-background-gradient\" style=\"background:linear-gradient(270deg,rgb(125,173,43) 49%,rgb(142,102,0) 49%)\"><\/span><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-3e41869c wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-background-color has-background wp-element-button\" href=\"https:\/\/ourlocality.org\/localdevelopmentplan\/\">Add a Proposal<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link has-white-color has-text-color wp-element-button\" href=\"https:\/\/ourlocality.org\/localdevelopmentplan\/all-categories\/\">All Categories<\/a><\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":586,"featured_media":955,"parent":968,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-966","page","type-page","status-publish","has-post-thumbnail","hentry","entry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/pages\/966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/users\/586"}],"replies":[{"embeddable":true,"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/comments?post=966"}],"version-history":[{"count":2,"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/pages\/966\/revisions"}],"predecessor-version":[{"id":992,"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/pages\/966\/revisions\/992"}],"up":[{"embeddable":true,"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/pages\/968"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/media\/955"}],"wp:attachment":[{"href":"https:\/\/ourlocality.org\/localdevelopmentplan\/wp-json\/wp\/v2\/media?parent=966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}