Commits on Jul 27, 2010
  1. Refine the tile scale & rounding logic.

    We now apply the scale transform to the layer group elements, rather than to
    each tile individually. In addition, rather than rounding each tile's position,
    we round the tileCenter coordinate.
    mbostock committed Jul 27, 2010
  2. Fix zoom transforms with non-tiled layers.

    Previously, if a zoom transform was used with a non-tiled layer, it could cause
    no tiles to be displayed. Now we guarantee that at least one (world-size) tile
    is visible.
    mbostock committed Jul 27, 2010
  3. Improve performance of re-adding a layer.

    Previously, when re-adding a layer to its map, the layer would be removed from
    the map only to be immediately added back. This prevents the browser from
    efficiently updating the display. Now we do the minimal amount of work, while
    still guaranteeing that layers appear in the order they were added.
    mbostock committed Jul 27, 2010
  4. Fix a bug in event dispatch.

    If an event listener is removed during an event dispatch, it shouldn't receive
    the active event. So now in addition to storing a defensive copy, we use a
    wrapper object for the event handler to store an `on` boolean. This is set to
    false when the listener is removed, preventing that handler from receiving the current event.
    mbostock committed Jul 27, 2010
  5. Make a defensive copy of registered listeners.

    This way, if a listener is removed while events are being dispatched, we won't
    inadvertantly skip a listener.
    mbostock committed Jul 27, 2010
  6. Cache reference to map.

    This way, if the layer is removed from the map by the time loaded tiles arrive,
    the map is still available for the purposes of projection.
    mbostock committed Jul 27, 2010
Commits on Jul 25, 2010
  1. Added Stamen to copyright

    Michal Migurski committed Jul 25, 2010
  2. Fixing the "logo" :)

    RandomEtc committed Jul 25, 2010
Commits on Jul 23, 2010
  1. Listen for hashchange events.

    Now, when the location.hash changes, the map center and zoom will change
    accordingly. This is particularly nice for pasting in a URL that only differs by
    hash. Also, the hash control now ignores the hash if any part of it isNaN, or if
    it contains fewer than three components.
    mbostock committed Jul 23, 2010
Commits on Jul 18, 2010
  1. Switch CloudMade API key.

    Please get your own API key at!
    mbostock committed Jul 18, 2010
  2. Ignore empty GeoJSON features.

    mbostock committed Jul 18, 2010
  3. Don't callback for empty responses.

    JSON.parse("") fails.
    mbostock committed Jul 18, 2010
Commits on Jul 17, 2010
  1. Add lib/google-compiler.

    mbostock committed Jul 17, 2010
  2. Make Markdown happy.

    mbostock committed Jul 17, 2010
  3. Polymaps v1.0.0.

    mbostock committed Jul 17, 2010
Commits on Jul 16, 2010
  1. Initial commit.

    joestump committed Jul 16, 2010