1/*global google,Modernizr,InfoBox,googlecode_regular_vars,jQuery,mapfunctions_vars,googlecode_regular_vars2,wpestate_setMarkers,wpestate_placeidx,wpestate_set_google_search*/ 2var gmarkers = []; 3var current_place=0; 4var actions=[]; 5var categories=[]; 6var map_open=0; 7var pins=''; 8var markers=''; 9var infoBox = null; 10var category=null; 11var map; 12var found_id; 13var selected_id = ''; 14var javamap; 15var oms; 16var idx_place; 17var bounds; 18var external_action_ondemand=0; 19var markers_cluster; 20var panorama; 21function wpresidence_initialize_map(){ 22 "use strict"; 23 var with_bound=0; 24 25 if( jQuery('#googleMap').length===0 && jQuery('#googleMapSlider').length===0 ){ 26 return; 27 } 28 29 wpresidence_map_general_start_map(); 30 31 32 33 34 35 if(googlecode_regular_vars.generated_pins==='0'){ 36 pins = googlecode_regular_vars.markers; 37 markers = jQuery.parseJSON(pins); 38 }else{ 39 if( typeof( googlecode_regular_vars2) !== 'undefined' && googlecode_regular_vars2.markers2.length > 2){ 40 pins = googlecode_regular_vars2.markers2; 41 markers = jQuery.parseJSON(pins); 42 with_bound = 1; 43 } 44 } 45 46 47 48 if (markers.length>0){ 49 wpresidence_map_general_set_markers(map, markers,with_bound); 50 } 51 52 if(googlecode_regular_vars.idx_status==='1'){ 53 wpestate_placeidx(map,markers); 54 } 55 56 //set map cluster 57 wpresidence_map_general_cluster(); 58 59 //fit bounds 60 wpresidence_map_general_fit_to_bounds(with_bound); 61 62 //spider 63 wpresidence_map_general_spiderfy(); 64 65 66 67 68} 69///////////////////////////////// end wpresidece_initialize_map 70/////////////////////////////////////////////////////////////////////////////////// 71 72 73if (typeof google === 'object' && typeof google.maps === 'object') { 74 google.maps.event.addDomListener(window, 'load', wpresidence_initialize_map); 75}else{ 76 wpresidence_initialize_map(); 77}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.