function wpdmp_print_google_calibrator($mapid) { $map = wpdmp_get_map($mapid); ?> <p><?php _e('Type the location on your map to position the Google Map, e.g. Germany or Munich or Black Sea:', 'wp-design-maps-and-places'); ?> </p> <input type="text" maxlength="2048" tabindex='1' value="" name="f_googleaddress" id="f_googleaddress" title="Address" class="" autocomplete="off" autocorrect="off" /> <input type='button' onclick='position_google_map($jq("#f_googleaddress").val());' tabindex='2' value='<?php _e(' Pane Google Map to ', 'wp-design-maps-and-places'); ?> ' id='positionmap' name='positionmap' /> <div id="google-map-canvas"></div> <div id="map_draggable_container"> <div id="vslider"></div> <div id="hslider"></div> <div id="keepratio"><input id="keepratio_check" type="checkbox" name="keepratio" value="keepratio" checked="checked"></input></div> <div id="map_calibrated_ok"><input id="map_calibrated_ok_button" onclick='getPxForLatLng();' type="button" value='<?php _e('Save', 'wp-design-maps-and-places'); ?> '></input></div> <img id="map_draggable" mapid="<?php echo $map['id']; ?> " style="" mapw="<?php echo $map['mapwidth']; ?> " maph="<?php echo $map['mapheight']; ?> " src="<?php echo $map['map']; ?> "/> </div> <?php }
function wpdmp_map_manager_view() { wpdmp_print_popup_dialog(); //$mapid = $_GET['mapid']; $maps = wpdmp_get_maps(); //load first found map as default if ($mapid == '') { $map = $maps[0]; $mapid = $maps[0]['id']; } else { $map = wpdmp_get_map($mapid); } $map_name = $map['map']; $map_path = $map['map']; //print_map_url($map_name); ?> <div class="wrap"> <div id="col-right"> <h1><?php _e('Preview map', 'wp-design-maps-and-places'); ?> </h1> <?php wpdmp_print_map_manager($mapid, 'backend_map_manager'); ?> </div> <div id="col-left" style="width:33%"> <?php wpdmp_print_maps_available($maps); ?> </div> </div> <div id="progressbar" style="background: url(<?php echo WPDMP_PLUGIN_URL . 'images/spin.gif'; ?> ) center center no-repeat #fff"/></div> <?php wpdmp_print_css_and_effects(); }
function wpdmp_reload_site_list_callback() { $mapid = basename($_POST['mapid']); ob_start(); $map = wpdmp_get_map($mapid); wpdmp_print_site_list($map); $content = ob_get_contents(); ob_end_clean(); echo $content; die; exit; }