
		<script type="text/javascript">
			(async() => {
			    //console.log("waiting for jQuery");

			    while(!window.hasOwnProperty("jQuery")) {
			        await new Promise(resolve => setTimeout(resolve, 100));
			    }

				var current_map;
				jQuery(window).on('load', function () {
						var map_id='1720';
														<!-- jQuery("#map-container-1720").append("<div style='background:grey;opacity:0.6;width:100%;height:1.5em;z-index:1500;position:absolute;bottom:0;text-align:left;padding-left:10px'><a style='cursor:pointer;text-decoration:none;color:#fff;' href='#' target='_blank'>Powered by LocateAndFilter</div>"); -->
						
							
						/* setting up the map */ 
					var params = {
						"instance_id":"locate_anything_map_1720",
						"map-id": "1720",
						"map-container":'map-container-1720',
						"initial-lat": 42.44303,
						"initial-lon": 19.26135,
						"initial-zoom": 8,
						"single-zoom": 5,
						"autogeocode" :'0',
						"display_only_inbound" : '0',
						"overlay" : {url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:"OpenStreetMap" ,maxZoom:18 ,minZoom:2},
						"googleplaces" : 0,
						"max_nav_item_per_page" : 20,
						"style-hue":"#000000",						"scrollWheelZoom" : 0,
						"navlist_event" : 'hover',
						"hide-splashscreen" : '1',
						"kml_file" :  '',
						"kml_fillColor" :  '#cbbdfb',
						"kml_weight" :  '2',
						"kml_opacity" :  '1',
						"kml_color" :  '#000000',
						"kml_dashArray" :  '2',
						"kml_fillOpacity" :  '0.5',
						"bing-key"  :	'An5y6EfmR_Tmk0nMXSWFQD7JZ2sc5Zv793InR2eKkVmMpwxfa_XOzlEmIEPXIol9',
						"load-google"	:	'',
						"load-bing"	:	'',
						"load-yandex"	:	'',
						"overlay-addon"	:	'',
						"overlay-addon-accessToken-jawg"	:	'',
						"overlay-addon-customstyle-jawg"	:	'',
						"overlay-addon-accessToken-thunderforest"	:	'',
						"overlay-addon-accessToken-mapbox"	:	'',
						"overlay-addon-accessToken-maptiler"	:	'',
						"overlay-addon-accessToken-openweathermap"	:	'',
						"overlay-addon-accessToken-here"	:	'',
						"enable_fitBounds"	:	'',
						"enable_zoom_to_marker"	:	'0'			
					};

						/* define instance name*/
						var map_instance="locate_anything_map_"+map_id;
						
						/* instanciate filter class */
					eval("var "+map_instance+"=new leaflet_filters_class(params);");				 
						/* loading ... */						
					 eval(map_instance).showLoader(true);
					 					 	/* Initialize Map  */	
					eval(map_instance).createMap();
					/*   Register filters, property_name is the name of the property as shown in the JSON datas  */
					var custom_filters= [{"property_name":"","html_id" : "#-1720"},{"property_name":"locateanythingmarkercategory","html_id" : "#locateanythingmarkercategory-1720"},];
					eval(map_instance).register_filters(custom_filters);
					/* Override nav item template */	 	
					eval(map_instance).template_nav_item = function(marker,LatLng) {	
						var template='<div name="NavMarker-' + marker.id+ '" id="NavMarker-' + marker.id+ '" class="map-nav-item" data-latlng="' + LatLng + '" data-marker-id="' + marker.id + '"><div class="map-nav-item-wrapper"><div class=\'navlist-title\'><b>'+decode((marker.title?marker.title:''))+'</b></div><div class=\'navlist-content\'>    <div class=\'navlist-thumbnail\'>'+decode((marker.small_thumbnail?marker.small_thumbnail:''))+'</div>    <div class=\'navlist-stripp-content\'>       '+decode((marker.content_stripped?marker.content_stripped:''))+'       <a class=\'navlist-link\' href=\''+decode((marker.post_link?marker.post_link:''))+'\'>read more</a>   </div></div></div></div>';
						return template;
					};
					/*  define callback function */
					var createEverything_1720 = function(result){	
						var cpt=0;	
									 	
						for(var i in result["data"]){	
							var marker={};	
								/*  The JSON containing the markers data is indexed to save space and generation time 
								*	Rebuilds the object with original field names
								*/			
		 					var indexed_marker=result["data"][i];
		 					for(var k in indexed_marker) {
		 						marker[result["index"]["fieldnames"][k]]=indexed_marker[k]; 						
		 					}
								/* Marker creation : set timeout is used to allow the progressbar to update */
							setTimeout(function(marker){											
									/* define Tooltip HTML*/	
																	var default_tooltip_template='<div class=\'tooltip-wrap\'>     <div class=\'tooltip-thumb\'>'+decode((marker.small_thumbnail?marker.small_thumbnail:''))+'</div>     <div class=\'tooltip-content\'>'+decode((marker.content_stripped?marker.content_stripped:''))+'</div></div>		  			  			  			  			  			  			  			  '+decode((marker.advanced_custom_field?marker.advanced_custom_field:''))+'';					
																	// length must be superior to 2 because of the inclusion of 2 single quotes to delimitate the output
								
								if(marker.tooltip_template.length>2) {									
									var html = eval(marker.tooltip_template);
									
								}
								else var html=default_tooltip_template;
									/* define icon*/
								var customIcon=null;
								if(marker.custom_marker){									
								 customIcon= eval(map_instance).getMarkerIcon(marker.custom_marker);		
								} else customIcon=false;					
									/* No custom icon, use default icon for this map */
								if(!customIcon) customIcon= eval(map_instance).getMarkerIcon(result["defaults"][0].default_marker);	
								
								/* updates progress bar */
								eval(map_instance).updateProgressBar(cpt++, result["data"].length, 1000);
								/* creates the marker */
								eval(map_instance).createMarker(marker.lat,marker.lng,html,marker,customIcon);
							},1,marker);							
						}	

						setTimeout(function() {						
							/* Render Map */							
							eval(map_instance).render_map(eval(map_instance).markers);						
							/*	Creation Nav */			
							eval(map_instance).updateNav(0);
							/* hide loader */
							eval(map_instance).showLoader(false);	
							/* stores the map in Jquery for easier access*/	
							current_map=eval(map_instance);
																					eval(map_instance).setup_range_sliders();				
							},250);
					}

					/*   JSON : Retrieve markers data */
					eval(map_instance).getData("https://drustvoekologa.me/wp-admin/admin-ajax.php?action=getMarkers&map_id=1720",createEverything_1720)
					/* call Tokenize for nice selects */
					if(jQuery.tokenize){
					var token1=jQuery('#map-filters-'+map_id+' .tokenize-1').tokenize({maxElements:"1",onRemoveToken:function(e,f){eval(map_instance).update_markers();},onAddToken:function(e,f){eval(map_instance).update_markers();}});
					var token=jQuery('#map-filters-'+map_id+' .tokenize').tokenize({maxElements:"9999",onRemoveToken:function(e,f){eval(map_instance).update_markers();},onAddToken:function(e,f){eval(map_instance).update_markers();}});
						
					} 
					/* Hide attribution */
					jQuery('.leaflet-control-attribution').hide();	
					/* Hide attribution */
						jQuery('.filter-select select').chosen({width:'250px',allow_single_deselect:'true'});
										
				});
    			//console.log("jQuery is loaded.");
			})();				
		</script>
	{"id":3100,"date":"2022-02-18T20:01:07","date_gmt":"2022-02-18T19:01:07","guid":{"rendered":"https:\/\/drustvoekologa.me\/areas-of-work\/"},"modified":"2022-02-18T20:01:07","modified_gmt":"2022-02-18T19:01:07","slug":"areas-of-work","status":"publish","type":"page","link":"https:\/\/drustvoekologa.me\/en\/areas-of-work\/","title":{"rendered":"Areas of work"},"content":{"rendered":"\n<div class=\"wp-block-cover alignfull has-background-dim-60 has-background-dim\" style=\"background-color:#202714;min-height:480px\"><img loading=\"lazy\" width=\"1920\" height=\"1279\" class=\"wp-block-cover__image-background wp-image-1327\" alt=\"\" src=\"https:\/\/cde.emmust.com\/wp-content\/uploads\/2020\/07\/services-bg.jpg\" data-object-fit=\"cover\" srcset=\"https:\/\/drustvoekologa.me\/wp-content\/uploads\/2020\/07\/services-bg.jpg 1920w, https:\/\/drustvoekologa.me\/wp-content\/uploads\/2020\/07\/services-bg-300x200.jpg 300w, https:\/\/drustvoekologa.me\/wp-content\/uploads\/2020\/07\/services-bg-1024x682.jpg 1024w, https:\/\/drustvoekologa.me\/wp-content\/uploads\/2020\/07\/services-bg-768x512.jpg 768w, https:\/\/drustvoekologa.me\/wp-content\/uploads\/2020\/07\/services-bg-1536x1023.jpg 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><div class=\"wp-block-cover__inner-container\">\n<h1 class=\"has-text-align-center has-white-color has-text-color\">Areas of work<\/h1>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n<section class=\"wp-block-uagb-section uagb-section__wrap uagb-section__background-undefined alignfull uagb-block-26137372\"><div class=\"uagb-section__overlay\"><\/div><div class=\"uagb-section__inner-wrap\">\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\" style=\"flex-basis:20%\"><div class=\"LA_filters\"><form id=\"map-filters-1720\" method=\"post\" action=\"#\"><ul id=\"category-filters-container1\" class=\"category-filters-container\"><li class=\"filter-checkbox\" data-sort=\"9999\"><label>Kategorije<\/label><div id=\"la-filter-13\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"13\" checked><div class=\"slug-laguna-buljarica filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Laguna - Buljarica<\/span><\/div><div id=\"la-filter-27\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"27\" checked><div class=\"slug-mapiranje-natura-2000-stanista filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Mapiranje Natura 2000 stanista<\/span><\/div><div id=\"la-filter-9\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"9\" checked><div class=\"slug-morski-ekosistemi filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Morski ekosistemi<\/span><\/div><div id=\"la-filter-11\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"11\" checked><div class=\"slug-pecine filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Pe\u0107ine<\/span><\/div><div id=\"la-filter-37\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"37\" checked><div class=\"slug-slatkovodna-fauna-riba filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Slatkovodna fauna riba<\/span><\/div><div id=\"la-filter-10\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"10\" checked><div class=\"slug-slatkovodna-stanista filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Slatkovodna stani\u0161ta<\/span><\/div><div id=\"la-filter-6\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"6\" checked><div class=\"slug-visokoplaninski-pasnjaci filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Visokoplaninski pa\u0161njaci<\/span><\/div><div id=\"la-filter-7\" class=\"LA_filters_checkbox filters_image \"><input class=\"filter_term_checkbox\" type=\"checkbox\"  id=\"locateanythingmarkercategory-1720\" name=\"locateanythingmarkercategory-1720[]\" value=\"7\" checked><div class=\"slug-vlazne-sume filter_term_image\" style=\"background-image: url()\"><\/div><span class=\"filter_term_name\">Vla\u017ene \u0161ume<\/span><\/div><\/li><\/ul><\/form><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column\" style=\"flex-basis:80%\"><!-- Map container -->\t\n\t\t\t\t<style>\n#map-container-1720 .awesome-marker i {font-size:15px !important;}\n#map-container-1720{width:100%;height:500px !important; }\n\t\t\t\t<\/style>\n\t\t\t\t\t\t<div id=\"map-container-1720\" >\n\t\t\t\t\t\t\t<!-- Progress bar-->\t\n\t\t\t\t\t\t<div id=\"progress-wrapper\">\t\t\t\t\t\n\t\t\t\t\t\t<div class=\"progress\"  style=\"background-color:transparent\" id=\"progress-1720\"><div class=\"progress-bar\" id=\"progress-bar-1720\"><\/div><\/div>\n\t\t\t\t\t\t<\/div><\/div>\n<\/div>\n<\/div>\n<\/div><\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"plain-container","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"enabled","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/drustvoekologa.me\/en\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/pages\/3100"}],"collection":[{"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/comments?post=3100"}],"version-history":[{"count":1,"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/pages\/3100\/revisions"}],"predecessor-version":[{"id":3101,"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/pages\/3100\/revisions\/3101"}],"wp:attachment":[{"href":"https:\/\/drustvoekologa.me\/en\/wp-json\/wp\/v2\/media?parent=3100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}