
			<script type="text/javascript">
	
				jQuery(document).ready(function($) { 		
				
					var map_id = 'initial';
	
					if(_CSPM_DONE[map_id] === true) return;
					
					_CSPM_DONE[map_id] = false;
					_CSPM_MAP_RESIZED[map_id] = 0;
					
					NProgress.configure({
					  parent: 'div#codespacing_progress_map_div_'+map_id+'',
					  showSpinner: true
					});				
					
					NProgress.start();
					
					var infobox_xhr; // Will store the ajax requests in order to test if an ajax request will overide "an already sent and non finished" request
					
					cspm_bubbles[map_id] = []; // Will store the marker bubbles (post_ids) in the viewport of the map
					cspm_child_markers[map_id] = []; // Will store the status of markers in order to define secondary markers from parent markers
					cspm_requests[map_id] = []; // Will store all the current ajax request (for infoboxes) in order to execute them when they all finish
									
					post_ids_and_categories[map_id] = {}; // Will store the markers categories in order to use with faceted search and to define the marker icon
					post_lat_lng_coords[map_id] = {}; // Will store the markers coordinates in order to use when rewriting the map & the carousel
					post_ids_and_child_status[map_id] = {} // Will store the markers and their child status in order to use when rewriting the carousel

					var json_markers_data = []; // Will store the markers

					/**
					 * init plugin map */
					 
					var plugin_map_placeholder = 'div#codespacing_progress_map_div_'+map_id;
					var plugin_map = $(plugin_map_placeholder);
					
					/**
					 * Load Map options */
					 
											var map_options = cspm_load_map_options(false, null, 12);
										
					/**
					 * Activate the new google map visual */
					 
					google.maps.visualRefresh = true;				

					/**
					 * The initial map style */
					 
					var initial_map_style = "custom_style";
					
					// Enhance the map option with the map type id of the style
					 
											
						// The initial style
						var map_type_id = cspm_initial_map_style(initial_map_style, true);
			
						// Map type control option
						var mapTypeControlOptions = {mapTypeControlOptions: {
														position: google.maps.ControlPosition.TOP_RIGHT,
														mapTypeIds: [google.maps.MapTypeId.ROADMAP,
																	 google.maps.MapTypeId.SATELLITE,
																	 google.maps.MapTypeId.TERRAIN,
																	 google.maps.MapTypeId.HYBRID,
																	 "custom_style"]				
													}};
													
						var map_options = $.extend({}, map_options, map_type_id, mapTypeControlOptions);
						
									
	
										
					// The carousel dimensions & style
										
						var item_width = parseInt(414);										
						var item_height = parseInt(120);
						var item_css = "";
						var items_background  = "#f9f9f9";
						
										
					 var light_map = false; 								
								/**
								 * Create the pin object */
								 								 
							    var marker_object = cspm_new_pin_object(0, '68', 44.813815, 20.443798, '', map_id, 'https://cieh-chre.org/en/wp-content/plugins/codespacing-progress-map/img/pin-blue.png', '21x28', 'no');
								json_markers_data.push(marker_object);
																
								
								/**
								 * Create the polyline/polygon paths from post IDs
								 * @since 2.7
								 */
								
								
											// Create the pin object
											var marker_object = cspm_new_pin_object(1, '68-0', 37.09024, -95.71289100000001, '', map_id, 'https://cieh-chre.org/en/wp-content/plugins/codespacing-progress-map/img/pin-blue.png', '21x28', 'yes_0');
											json_markers_data.push(marker_object);
											
												
					var infobox_div = $('div.cspm_infobox_container.cspm_infobox_'+map_id+'');			
					var show_infobox = 'true';
					var infobox_type = 'rounded_bubble';
					var infobox_display_event = 'onhover';
					var useragent = navigator.userAgent;
					var infobox_loaded = false;
					var clustering_method = false;
											
					/**
					 * [@polyline_values] - will store an Object of all available Polylines	
					 * [@polygon_values] - will store an Object of all available Polygons					 					 
					 *
					 * @since 2.7 
					 */
					 
					var polyline_values = [];
					var polygon_values = [];
					
										
								
					/**
					 * Build the map */
					 
					plugin_map.gmap3({	
						map:{
							options: map_options,							
							onces: {
								tilesloaded: function(map){
																		
									var carousel_output = []; 

									plugin_map.gmap3({ 										
										marker:{
											values: json_markers_data,
											callback: function(markers){
												
												/**
												 * Autofit the map to contain all markers & clusters */
												 
																								
												/**
												 * Build the carousel items */
												 
												if(!light_map){
													
													for(var i = 0; i < markers.length; i++){	

														var post_id = markers[i].post_id;
														var is_child = markers[i].is_child;
	
														// Convert the LatLng object to array
														var marker_position = $.map(markers[i].position, function(value, index) {
															return [value];
														});
														var lat = marker_position[0];
														var lng = marker_position[1];											
													
														// Create carousel items											
														carousel_output.push('<li id="'+map_id+'_list_items_'+post_id+'" class="'+post_id+' carousel_item_'+(i+1)+'_'+map_id+'" data-is-child="'+is_child+'" name="'+lat+'_'+lng+'" value="'+(i+1)+'" data-post-id="'+post_id+'" style="width:'+item_width+'px; height:'+item_height+'px; background-color:'+items_background+'; margin:4px 3px; '+item_css+'">');
															carousel_output.push('<div class="cspm_spinner"></div>');							
														carousel_output.push('</li>');
														
														if(i == markers.length-1){
															$('ul#codespacing_progress_map_carousel_'+map_id+'').append(carousel_output.join(''));	
															cspm_init_carousel(null, map_id);
														}
														
													}																						
																																					
												}																																		
												
											},											
											events:{
												mouseover: function(marker, event, elements){
													
													/**
													 * Display the single infobox */
													 
													if(show_infobox == 'true' && infobox_display_event == 'onhover')
														infobox_xhr = cspm_draw_single_infobox(plugin_map, map_id, infobox_div, infobox_type, marker, infobox_xhr, 'yes');
													
																										
														/**
														 * Apply the style for the active item in the carousel */
														 
														if(!light_map){	
															
															var post_id = marker.post_id;
															var is_child = marker.is_child;	
															var i = $('li[id='+map_id+'_list_items_'+post_id+'][data-is-child="'+is_child+'"]').attr('value');	
															
															cspm_call_carousel_item($('ul#codespacing_progress_map_carousel_'+map_id+'').data('jcarousel'), i);
															cspm_carousel_item_hover_style('li.carousel_item_'+i+'_'+map_id+'', map_id);
														
														}
													
																										
												},												 
												click: function(marker, event, elements){
													
													var latLng = marker.position;											
													
													/**
													 * Center the map on that marker */
													
													if(infobox_type != 'cspm_type5') 
														map.panTo(latLng);
													
													/**
													 * Display the single infobox */
													 
													if(json_markers_data.length > 0 && show_infobox == 'true' && infobox_display_event == 'onclick'){
														setTimeout(function(){																										
															infobox_xhr = cspm_draw_single_infobox(plugin_map, map_id, infobox_div, infobox_type, marker, infobox_xhr, 'yes');
														}, 400);
													}
													
																			
													
														/**
														 * Apply the style for the active item in the carousel */
														 
														if(!light_map){	
															
															var post_id = marker.post_id;
															var is_child = marker.is_child;
															var i = $('li[id='+map_id+'_list_items_'+post_id+'][data-is-child="'+is_child+'"]').attr('value');
														
															cspm_call_carousel_item($('ul#codespacing_progress_map_carousel_'+map_id+'').data('jcarousel'), i);
															cspm_carousel_item_hover_style('li.carousel_item_'+i+'_'+map_id+'', map_id);
														
														}
													
																										
												}
											}
										}
									});									
									
																			clustering_method = true;
										var clusterer = cspm_clustering(plugin_map, map_id, light_map);										$('div.codespacing_map_zoom_in_'+map_id+', div.codespacing_map_zoom_out_'+map_id+'').show(); 									
									/**
									 * Draw infoboxes (onload event) */
									 
									if(json_markers_data.length > 0 && clustering_method == true && show_infobox == 'true' && infobox_display_event == 'onload'){			
										google.maps.event.addListenerOnce(clusterer, 'clusteringend', function(cluster) {																	
											setTimeout(function(){
												cspm_draw_multiple_infoboxes(plugin_map, map_id, '<div class="cspm_infobox_container cspm_infobox_multiple cspm_infobox_initial rounded_bubble" style="width:60px; height:60px;" data-move-carousel="true"><div class="blue_cloud"></div><div class="cspm_arrow_down rounded_bubble"></div></div>', infobox_type, 'yes');
												infobox_loaded = true;
											}, 1000);																
										});	
									}else if(json_markers_data.length > 0 && clustering_method == false && show_infobox == 'true' && infobox_display_event == 'onload'){
										setTimeout(function(){
											cspm_draw_multiple_infoboxes(plugin_map, map_id, '<div class="cspm_infobox_container cspm_infobox_multiple cspm_infobox_initial rounded_bubble" style="width:60px; height:60px;" data-move-carousel="true"><div class="blue_cloud"></div><div class="cspm_arrow_down rounded_bubble"></div></div>', infobox_type, 'yes');
											infobox_loaded = true;
										}, 1000);
									}else if(json_markers_data.length > 0 && show_infobox == 'true' && infobox_display_event != 'onload'){infobox_loaded = true;}
										
									NProgress.done();
									
								}
								
							},
							events:{
								click: function(){
									
									/**
									 * Remove single infobox on map click (onclick, onhover events) */
									 
									if(json_markers_data.length > 0 && show_infobox == 'true' && infobox_display_event != 'onload'){										
										infobox_div.addClass('cspm_animated fadeOutUp');					
										infobox_div.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
											infobox_div.hide().removeClass('cspm_animated fadeOutUp');
										});
									}
									
								},
								idle: function(){								
									if(infobox_loaded && !cspm_is_panorama_active(plugin_map)){
										setTimeout(function(){
											if(json_markers_data.length > 0 && show_infobox == 'true' && infobox_display_event == 'onload'){								
												cspm_draw_multiple_infoboxes(plugin_map, map_id, '<div class="cspm_infobox_container cspm_infobox_multiple cspm_infobox_initial rounded_bubble" style="width:60px; height:60px;" data-move-carousel="true"><div class="blue_cloud"></div><div class="cspm_arrow_down rounded_bubble"></div></div>', infobox_type, 'yes');
											}
										}, 200);
									}
								},				
								bounds_changed: function(){
									if(json_markers_data.length > 0){
										if(json_markers_data.length > 0 && show_infobox == 'true' && infobox_display_event != 'onload'){
											cspm_set_single_infobox_position(plugin_map, infobox_div);
										}else $('div.cspm_infobox_container').hide();
									}
								},
								drag: function(){
									if(json_markers_data.length > 0){
										if(show_infobox == 'true' && infobox_display_event != 'onload'){
											cspm_set_single_infobox_position(plugin_map, infobox_div);
										}else $('div.cspm_infobox_container').hide();
									}
								},
								center_changed: function(){
									setTimeout(function() {
										$('div[class^=cluster_posts_widget]').removeClass('flipInX');

										$('div[class^=cluster_posts_widget]').addClass('cspm_animated flipOutX');
									}, 1000);
								}
							}
						},					
						
						/**
						 * Draw Polylines
						 * @since 2.7
						 */
						
												
						/**
						 * Draw Polygons
						 * @since 2.7
						 */
						
												
						/**
						 * Display KML Layers
						 * @since 2.7
						 */
						 
													
							kmllayer:{
								options:{
									url: "http://www.cieh-chre.org/wp-content/uploads/2016/09/Holocaust-in-Belgrade.kmz",
									opts:{
										suppressInfoWindows:  false ,																										
										preserveViewport:  false ,
										screenOverlays: false,
									},
								},							
							},				
						
												
						/**
						 * Show the Traffic Layer
						 * @since 2.7
						 */
						 
												
						/**
						 * Geo Targeting */
						 
												
						/**
						 * Set the map style */
						 
						 
														
							styledmaptype:{
								id: "custom_style",
								options:{
									name: "Subtle Grayscale",
									alt: "Show Subtle Grayscale"
								},
								styles: [{"featureType":"landscape","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","stylers":[{"saturation":-100},{"lightness":51},{"visibility":"simplified"}]},{"featureType":"road.highway","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"road.arterial","stylers":[{"saturation":-100},{"lightness":30},{"visibility":"on"}]},{"featureType":"road.local","stylers":[{"saturation":-100},{"lightness":40},{"visibility":"on"}]},{"featureType":"transit","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"administrative.province","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":-25},{"saturation":-100}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]}]							},
							
												
						/**
						 * Echo the post count label */
						 
							
										
					});		
					
					/**
					 * Hide/Show UI Controls depending on the streetview visibility */
					
					var mapObject = plugin_map.gmap3('get');
					
					if(typeof mapObject.getStreetView === 'function'){
												
						var streetView = mapObject.getStreetView();
					
						google.maps.event.addListener(streetView, "visible_changed", function(){
							
							if(this.getVisible()){
								
								// Hide the Zoom cotrol before the map load	
																	$('div.codespacing_map_zoom_in_'+map_id+', div.codespacing_map_zoom_out_'+map_id+'').hide();
																
								// Hide the faceted search before the map load				
																
								// Hide the search form before the map load				
																
																
								$('div.cspm_infobox_container').hide();
								
							}else{
								// Show the Zoom cotrol after the map load	
																	$('div.codespacing_map_zoom_in_'+map_id+', div.codespacing_map_zoom_out_'+map_id+'').show();
																
								// Show the faceted search after the map load				
																
								// Show the search form after the map load				
																
																
								if(json_markers_data.length > 0 && infobox_loaded){
									setTimeout(function(){
										if(show_infobox == 'true' && infobox_display_event == 'onload'){								
											cspm_draw_multiple_infoboxes(plugin_map, map_id, '<div class="cspm_infobox_container cspm_infobox_multiple cspm_infobox_initial rounded_bubble" style="width:60px; height:60px;" data-move-carousel="true"><div class="blue_cloud"></div><div class="cspm_arrow_down rounded_bubble"></div></div>', infobox_type, 'yes');
										}
									}, 200);
								}
							}
								
						});
						
					}
					
					/**
					 * Show error msg when center point is not correct */
					 		
										
															
						// Call zoom-in function
						cspm_zoom_in($('div.codespacing_map_zoom_in_'+map_id+''), plugin_map);
					
						// Call zoom-out function
						cspm_zoom_out($('div.codespacing_map_zoom_out_'+map_id+''), plugin_map);
						
										
					/**
					 * Center the Map on screen resize */
					 
										
						$(window).resize(function(){
							
							setTimeout(function(){
								
								var latLng = new google.maps.LatLng (44.71722,  20.46401);							
							
								var map = plugin_map.gmap3("get");	
								
								if(typeof map.panTo === 'function')
									map.panTo(latLng);
								
								if(typeof map.setCenter === 'function')
									map.setCenter(latLng);
									
							}, 500);
							
						});

					 
					
					/**
					 * Resolve a problem of Google Maps & jQuery Tabs */
					 
										
						
						$(plugin_map_placeholder+':visible').livequery(function(){
							if(_CSPM_MAP_RESIZED[map_id] <= 1){ // 0 is for the first time loading, 1 is when the user clicks the map tab.
								cspm_center_map_at_point(plugin_map, 44.71722,  20.46401, 'resize');
								_CSPM_MAP_RESIZED[map_id]++;
							}
							cspm_zoom_in_and_out(plugin_map);
						});

											
					_CSPM_DONE[map_id] = true;
	
				});
			
			</script> 
			
			{"id":10,"date":"2015-04-13T21:53:40","date_gmt":"2015-04-13T19:53:40","guid":{"rendered":"http:\/\/cieh-chre.org\/en\/?p=10"},"modified":"2016-09-18T02:30:45","modified_gmt":"2016-09-18T00:30:45","slug":"holocaust-mapping","status":"publish","type":"post","link":"https:\/\/cieh-chre.org\/en\/holocaust-mapping\/","title":{"rendered":"Holocaust mapping"},"content":{"rendered":"<div class=\"codespacing_progress_map_area\" role=\"bar\" style=\"width:100%; height:620px;\" data-show-infobox=\"true\" data-infobox-display-event=\"onhover\"><div class=\"row\" style=\"margin:0; padding:0;\"><div style=\"position:relative; overflow:hidden;\"><div id=\"pulsating_holder\" class=\"initial_pulsating\"><div class=\"dot\"><\/div><\/div><div class=\"cspm_infobox_container cspm_infobox_single cspm_infobox_initial rounded_bubble\" style=\"width:60px; height:60px;\" data-move-carousel=\"true\"><div class=\"blue_cloud\"><\/div><div class=\"cspm_arrow_down rounded_bubble\"><\/div><\/div><div class=\"codespacing_zoom_container\"><div class=\"codespacing_map_zoom_in_initial\"><\/div><div class=\"codespacing_map_zoom_out_initial\"><\/div><\/div><div class=\"cluster_posts_widget_initial\"><\/div><div id=\"codespacing_progress_map_div_initial\" class=\"col col-lg-12 col-xs-12 col-sm-12 col-md-12\" style=\"height:472px;\"><\/div><\/div><div id=\"codespacing_progress_map_carousel_container\" class=\"col col-lg-12 col-xs-12 col-sm-12 col-md-12\" style=\"margin:0; padding:0; height:auto;\"><ul id=\"codespacing_progress_map_carousel_initial\" class=\"jcarousel-skin-default\" style=\"height:128px;\"><\/ul><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":53,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/posts\/10"}],"collection":[{"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":1,"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":11,"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/posts\/10\/revisions\/11"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/media\/53"}],"wp:attachment":[{"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cieh-chre.org\/en\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}