Get new jQuery plugins just once a week

×

WhatsNearby

FavoriteLoadingAdd to favorites

January 10, 2014

WhatsNearby | jQuery plugin to show nearby places in Google Maps

WhatsNearby is a jQuery plugin to list and show nearby places around a certain position using Google Maps.

Options and Example Code

options: {
address: "Montréal, Qc", //A string representing a physical address, this will be used as the center of the map
lat: 45.509234, //The latitude coordinate of the center of the map (default if no address set)
lng: -73.559067, //The longitude coordinate of the center of the map (default if no address set)
width: 500 , //can be px or %
height: 500, //can be px or %
zoom : 8, //map zoom level
mapType : google.maps.MapTypeId.ROADMAP, //ROADMAP, SATELLITE, HYBRID, TERRAIN
placeMainMarker : true, //shows the marker for the center position of the map
mainMarkerIcon : "", //if set, this image will replace the default marker icon
placesTypes : ['store', 'gym'], //an array of places types
placesTypesIcon : [], //if set, those images will replace type marker icons (must match placesTypes order)
excludePlacesTypes : [], //an array of types that will be excluded from the search
excludeByKeywords: [], //an array of string that will be excluded from the search (name of the place)
placesRadius : 500 //the radius, in meters in which Places will be found
}

Created by La Grange

Download

Example

WhatsNearby jquery plugin

places

WhatsNearby

Related posts:

GitHub
Tabulate
jquery-live-regions
WhatsNearby jquery plugin

http://jquer.in/wp-content/uploads/2014/01/WhatsNearby.jpg

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever