function get_map_conf() { $conf = array(); $conf['containerID'] = 'map_embed'; $conf['disableHash'] = true; $conf['mainMap'] = true; if (isset($_GET['map_id'])) { $conf['postID'] = $_GET['map_id']; } else { $conf['postID'] = jeo_get_the_ID(); } if (isset($_GET['map_only'])) { $conf['disableMarkers'] = true; } if (isset($_GET['layers'])) { $conf['layers'] = explode(',', $_GET['layers']); if (isset($conf['postID'])) { unset($conf['postID']); } } if (isset($_GET['zoom'])) { $conf['zoom'] = $_GET['zoom']; } if (isset($_GET['lat']) && isset($_GET['lon'])) { $conf['center'] = array($_GET['lat'], $_GET['lon']); $conf['forceCenter'] = true; } $conf['disable_mousewheel'] = false; $conf = apply_filters('jeo_map_embed_conf', $conf); return apply_filters('jeo_map_embed_geojson_conf', json_encode($conf)); }
} ?> <li><a href="<?php echo qtrans_convertURL(get_post_type_archive_link('map')); ?> "><?php _e('View all maps', 'jeo'); ?> </a></li> </ul> </li> <?php } ?> </ul> </div> <div class="map-container"> <div id="mapgroup_<?php echo jeo_get_the_ID(); ?> _map" class="map"> </div> </div> </div> </div> <script type="text/javascript"> var group = jeo.group(<?php echo jeo_mapgroup_conf(); ?> ); </script>
<?php query_posts(array('jeo_featured' => 1, 'posts_per_page' => 4)); ?> <?php if (have_posts() && get_post_type(jeo_get_the_ID()) == 'map') { ?> <section id="featured-content" class="posts-section featured"> <?php $map_id = jeo_map(null, false, true); ?> <div class="container"> <div class="eleven columns"> <h2><?php _e('Featured', 'jeo'); ?> </h2> </div> <div class="four columns"> <div class="featured-content"> <ul class="featured-list"> <?php $class = 'slider-item'; ?> <?php $i = 0; while (have_posts()) { the_post(); ?> <?php $geometry = jeo_get_element_geometry_data();