Pushpin API Documentation (Version 1.3)
Getting a Map
Adding a Pin to the Map
Adding Controls
Opening an Info Window
Adding Overlays
Handling Clicks
Attaching Events
Opening an Info Window above a Marker
Tabbed Info Windows
Creating Custom Icons
Getting Multiple Maps on One Page
Geocoding
Finding a Place *NEW
Geographic Breadcrumbs *NEW
Using XML
Managing Markers
Printing Map Images *NEW
Using a Different API Version
Creating a Map in Demo Mode
--> Using a proxy-->Toggling Map Layers Off
Creating a Custom Map Type
Adding Thematic Variables
Changing Thematic Colors on the Map
Changing the Number of Thematic Breaks
Setting Custom Thematic Breaks *NEW
Merging Map Layers on the Client Side
Overlay Sets and Filtering *NEW
Adding Overlay Sets
Adding Attributes and Filters
Displaying Filters
Adding Predefined Marker Sets *NEW
Filtering Marker Sets by Icons *NEW
PMap
PInfoWindow
PInfoWindowTab
PMarker
PPolyline
PPolygon
POverlaySet *NEW
PIcon
PEvent
PEventListener
PClientGeocoder
PPlaceLoader *NEW
PPlace *NEW
PPlaceType *NEW
PPlaceTypeConfig *NEW
PAddress
PMarkerManager
PPoint
PSize
PBounds
PLatLng
PLatLngBounds
PAttribute
PAttributeFilter
PXmlHttp
PXml
PXslt
PLargeMapControl
PSmallMapControl
PMapTypeControl
PUnload
PDownloadUrl
PGetVersion
PMapType
PMapLayer
PIndicatorLoader
PIndicator
PLegend
PColor
PColorRamp
PWidget
PPlaceContainmentWidget *NEW
Browse Pushpin Collections for data from ESRI, Claritas, NAVTEQ and more! View Documentation for Version 1.2 Version 1.1 Version 1.0 Version 0.9 Version 0.8
If you're unsure which version of the API you're using, use the global functionPGetVersion()
.
Getting Started
Placebase's Pushpin provides an easy to use JavaScript Application Programming Interface (API) for embedding scrollable maps into your website. The following code example shows how to create a 500x300 pixel scrollable map centered on Los Angeles:Here is a link to a page where you can view this example in action (start.html).Pushpin JavaScript API Example: Getting Started //The URL in the example above,
http://api.pushpin.com/js?key=A8C2B4DB310FF6A1987E1C06FCE83516
, is the location of the pushpin code. In order for that URL to work, you will need a validkey
value. Upon subscribing to Pushpin you will receive a key. This key will only work for web pages served from your site.
via pushpin.com