Pushpin API Blog
API Documentation
API Blog Archives
Latest Posts
Oct – Dec 2007
Jul – Sep 2007
Apr – Jun 2007
Jan – Mar 2007
Oct – Dec 2006
Jul – Sep 2006
Apr – Jun 2006
Contact us


(c) 2008 Placebase, Inc.


Happy holidays!

Posted by I Wei Lai - 12/18/06 18:33:48

This will probably be our last major release of the year. This month's updates include:
  • Faster initial map loads. We've optimized this by requesting less tile images per map.
  • Function that saves maps as printable images in PNG format (not exposed to the public API yet).
  • A small bug fix for the map click event in IE 7.
It's been a great year with major accomplishments for the Pushpin API and we owe it all to our incredible development team and their efforts. We'll be continuing to add lots of new stuff next year, including a developer network, more map coverage, more data (indicators), more advanced GIS capabilities and widgets, a charting API and much, much more. So, enjoy the holidays and we'll see you next year!

World maps

Posted by Rorie Overby - 12/01/06 20:42:18

Maps for the whole world are now available down to zoom level 8 (scale 576,000). Major cities, and freeways and streets are separate layers (PMapLayer.CITIES, PMapLayer.POLYLINE), and are a part of the normal, default maps (PMapType.NORMAL). Also, coming soon are detailed Canada maps using NAVTEQ data for all zoom levels!


New releases in November

Posted by I Wei Lai - 11/29/06 19:12:24

A lot of exciting API features were released this month, including marker clustering and overlay sets. Here's a list of them:
  • New class PMarkerManager that handles large amounts of markers by grouping them into clusters. Click here for an example.
  • New class POverlaySet that groups overlays into sets. Click here for an example.
  • New class PAttribute that can be added to overlays to set attributes. Click here for an example.
  • New class PAttributeFilter that can be added to overlay sets for filtering attributes. Click here for an example.
  • New widget P_WIDGET_OVERLAY_ID that displays overlay sets and filters. Click here for an example.

PWidget style customization

Posted by Moran Ben-David - 11/21/06 13:48:00

We've added documentation and an example regarding customizing PWidget styles.

API code generator

Posted by I Wei Lai - 11/16/06 17:33:28

We developed a cool way to generate Pushpin API JavaScipt code, as part of the Pushpin CX framework. Upon logging in, you can upload points, add and remove points by clicking on the map or by entering an address, and pan and zoom around the map. Once you've created the map you want, you can "save" it by clicking on the "create url" link which basically saves the JavaScript created and gives you a link and an embeddable iframe code snippet that will reproduce the same map.

More API updates

Posted by I Wei Lai - 11/06/06 12:10:29

More updates to the API were released today:
  • New function panBy() in PMap that pans smoothly by a distance.
  • New function panDirection() in PMap that pans by half the width and height of the map.
  • New function containsBounds() in PBounds and PLatLngBounds that returns whether a bounds is contained within this bounds.
  • New function extend() in PBounds and PLatLngBounds that enlarges the bounds to the given point.
  • New function isEmpty() in PLatLngBounds that returns whether the bounds is empty.
  • New function latRadians() in PLatLng that returns the latitude in radians.
  • New function lngRadians() in PLatLng that returns the longitude in radians.

More API functions

Posted by I Wei Lai - 10/30/06 19:21:03

More functions added to PMap:
  • enableDoubleClickZoom() enables double click to zoom in and out.
  • disableDoubleClickZoom() disables double click zoom.
  • doubleClickZoomEnabled() returns whether double clikc zoom is enabled.
  • getContainer() returns the DOM object that contains the map.
  • getSize() returns the size of the map.
  • zoomIn() zooms in one level.
  • zoomOut() zooms out one level.
  • savePosition() stores the current map view.
  • returnToSavedPosition() returns to the saved map view.

Added more PMap events

Posted by Moran Ben-David - 10/24/06 17:50:31

The following events were added to PMap:
  • infowindowopen, which is triggered when the info window opens.
  • infowindowclose, which is triggered when the info window closes.
  • addoverlay, which is triggered when an overlay gets added to the map.
  • removeoverlay, which is triggered when an overlay is removed from the map.
  • clearoverlays, which is triggered when all overlays are removed from the map.

Fixed PIcon sizing bug

Posted by I Wei Lai - 10/23/06 18:57:16

Previously, the iconSize and shadowSize properties in PIcon did not resize the image if it was different from the actual dimesions of the image. This problem has been fixed.

Added PGetVersion() function

Posted by I Wei Lai - 10/19/06 13:57:24

Added a new global function PGetVersion() that returns the version of the API you are using. Almost everyone should have been upgraded to our latest 1.0 version, but if you find that some functions aren't working, you can use PGetVersion() to see if you're using an older version of the API.

PGeocoder changes

Posted by Moran Ben-David - 10/18/06 15:29:15

We've renamed the old PGeocoder class to PClientGeocoder with new functions. Take a look at the new example.

Added clearOverlays() function

Posted by I Wei Lai - 10/10/06 14:01:47

Added a new function, clearOverlays() to PMap, that removes all overlays from the map.

Tabbed Info Windows

Posted by I Wei Lai - 10/09/06 17:24:39

This has been a popular feature request and it's finally here! Two new classes have been added, as well as various new functions, and we've created a new example to demonstrate how to add tabbed info windows to your maps. Here is a list of the changes to the API:
  • New class PInfoWindow that represents the info window.
  • New class PInfoWindowTab that represents a tab in the info window.
  • New function openInfoWindowTabs() in PMap and PMarker to display tabbed windows on the map.
  • New function openInfoWindowTabsHtml() in PMap and PMarker to display tabbed windows (with HTML content) on the map.
  • New function getInfoWindow() in PMap that returns the current info window on the map.

New map layers!

Posted by Rorie Overby - 10/05/06 17:32:27

We have some new map layers in the API:
  • PMapLayer.COUNTY - These are county boundaries available at certain zoom levels.
  • PMapLayer.COUNTY_LABEL - These are county labels available at certain zoom levels.
  • PMapLayer.ZCTA - These are ZCTA (Zip Code Tabulation Areas) boundaries available at certain zoom levels.
  • PMapLayer.ZCTA_LABEL - These are ZCTA (Zip Code Tabulation Areas) labels available at certain zoom levels.
Here is an example with county boundaries and labels added to the map.


PWidget functions

Posted by I Wei Lai - 10/04/06 11:55:10

We've made some changes to PWidget:
  • Function setLabel(), renamed from setTitle().
  • Function setContentHtml(), renamed from setBody().
  • New function setContent() that sets the content of the widget with an HTML DOM element.