Hi,
I created a custom post type 'outlet'. So with views I made a WordPress archive.
HTML:
[wpv-layout-start] <div id="js-main-map-canvas" class="google-maps team-map-height"></div> [wpv-items-found] <!-- wpv-loop-start --> <ul id="js-map-elements"> <wpv-loop> <li data-marker-title="[wpv-post-title]" data-marker-lat="[types field="latitude" output="raw"][/types]" data-marker-lon="[types field="longitude" output="raw"][/types]"><div class="js-map-infowindow-html">[wpv-post-link]</div></li> </wpv-loop> </ul> <!-- wpv-loop-end --> [/wpv-items-found] [wpv-no-items-found] [wpml-string context="wpv-views"]<strong>No posts found</strong>[/wpml-string] [/wpv-no-items-found] [wpv-layout-end]
JS:
jQuery( document ).ready(function($) { $("#js-main-map-canvas").wpvmap(); });
So as far as I can judge, I followed all steps on http://wp-types.com/documentation/user-guides/map-wordpress-posts/.
I also added CSS to my theme:
.team-map-height { width:515px; height:400px; }
What am I doing wrong?