This reference documents the Map Javascript object.

Basic Use

var map;
  (function( $ ) {

    map = new Map ();
    var neighborhood = new Neighborhood ({
      map: map,
      polygon_click : function  ( polygon ) {
        window.location.href = polygon.permalink;
        // window.open(polygon.permalink,'_blank');
        // window.focus();
      }
    });
    var listings = new Listings ({ 
      map: map
    });
   
    map.init({
        lat: '38.895112',
        lng: '-77.036366',
        type: 'neighborhood',
        neighborhood: neighborhood,
        listings: listings,
        dom_id: 'polygon_id',
        hide_on_empty: true,
        full_callback: function () {
          jQuery('#full_overlay div').hide();
        }
    });

    listings.init();
  })(jQuery);

Parameters

Argument Description Example
infowindows
markers
markers_hash
bounds
list
dom_id
center_map
listings
polygons
status_window
polygons_verticies
polygons_exclude_center
selected_polygon
allow_polygons_to_clear
lat
lng
zoom
always_center
filter_by_bounds
full_callback
disable_info_window
infotemplate
marker
marker.icon
marker.icon_hover
map_options