Permalink
Commits on Sep 25, 2010
  1. Add Hilbert curve example.

    mbostock committed Sep 25, 2010
  2. Fixed-scale points for GeoJSON layers.

    GeoJSON layers can now have scale("fixed"), which renders Point and MultiPoint
    features at fixed scale, rather than varying with zoom level. This is nice for
    markers (think map push-pins) where you want the marker to remain fixed-size
    independent of zoom.
    
    This feature is implemented by listening to the new layer "move" event, which is
    identical to the map's "move" event except guarantees that listeners are
    executed after the layer has updated its tiles. This way, the GeoJSON layer can
    append a scale() transform to the Point and MultiPoint features that undoes the
    default zoom scaling.
    mbostock committed Sep 25, 2010
Commits on Sep 23, 2010
  1. Fix a bug with default geoJson settings.

    The default URL for geoJson layers was "about:blank"; this causes a security
    exception when issuing an XMLHttpRequest from another domain. The new default
    URL is null, which avoids any XMLHttpRequest and just creates blank tiles. In
    addition, setting the features property to a non-null value has the side-effect
    of setting the URL to null and vice versa.
    
    For consistency, the default URL for image layers is now also null, which causes
    no image to be loaded. This commit also fixes a bug when the URL is a string
    with no placeholders, allowing simple repeating image tiles to be created.
    mbostock committed Sep 23, 2010
  2. Rename "scale" event to "zoom".

    mbostock committed Sep 23, 2010
Commits on Sep 22, 2010
  1. Checkpoint geoJson.scale("fixed") support.

    This allows GeoJSON markers to remain fixed size when zooming.
    mbostock committed Sep 22, 2010
Commits on Sep 21, 2010
  1. Add a marker icon example.

    mbostock committed Sep 21, 2010
  2. Use getBBox instead of getClientRects.

    After some browser testing and a closer reading of the CSSOM specification, it
    turns out Firefox was correctly reporting the size of the tight SVG bounding
    box, while WebKit was returning (incorrectly) the size of the SVG container. We
    now use `rect.getBBox` on all browsers, which is much more reliable!
    mbostock committed Sep 21, 2010
Commits on Sep 20, 2010
  1. Update style.css for IE9.

    mbostock committed Sep 20, 2010
  2. Bind the loupe to a point, rather than a location.

    This way, the loupe feels more like a user interface element rather than a
    feature of the underlying map, and it doesn't move unexpectedly when the
    underlying map is panned or zoomed.
    
    This commit also includes support for a loupe `zoomDelta`, for magnification or
    minification.
    mbostock committed Sep 20, 2010
  3. Allow loupe to be resized.

    mbostock committed Sep 20, 2010
  4. Add draggable loupe example.

    mbostock committed Sep 20, 2010
Commits on Sep 18, 2010
  1. Update website to 2.2.0.

    Mike Bostock committed Sep 18, 2010
  2. Merge 'git@github.com:mbostock/polymaps.git'

    Mike Bostock committed Sep 18, 2010
  3. getBoundingClientRect is broken in WebKit nightly.

    However, getClientRects()[0] appears to do what we want, still.
    Mike Bostock committed Sep 18, 2010
Commits on Sep 15, 2010
  1. Checkpoint documentation updates.

    Mike Bostock committed Sep 15, 2010
  2. Add stylist.

    The stylist is a simple, Protovis-like way to style GeoJSON tiles dynamically.
    Stylists can be registered as "load" or "show" event handlers, and set dynamic
    attributes, styles and titles on GeoJSON feature elements. The attribute, style
    and title values are computed as functions of the associated data.
    Mike Bostock committed Sep 15, 2010
Commits on Sep 9, 2010
  1. Allow geoJson.clip to be set after add.

    Setting geoJson.tile(false) also explicitly, rather than implicitly, disables
    clipping. The size of the clipping rect is inferred from the tile size when the
    map is set (as before); this may change in the future if the map dispatches an
    event when the tile size changes.
    
    Also in this commit, the features associated with a geoJson tile are now
    accessible as the `features` attribute of the tile. This is distinct from the
    `features` attribute of the event, which only includes the updated features.
    Mike Bostock committed Sep 9, 2010
Commits on Sep 8, 2010
  1. Allow layers to be re-configured post-add.

    The following layer properties can now be changed after add:
    
      layer.zoom
      layer.tile
      image.url
      geoJson.url
      geoJson.features
    
    These changes are enabled using the new `cache.clear()` method, and the
    corresponding `layer.reload()` method which clears the cache before reloading
    the currently-visible tiles.
    
    Also in this commit, geoJson.show and geoJson.reshow return `this`.
    Mike Bostock committed Sep 8, 2010
Commits on Sep 7, 2010
  1. Wheel now supports zoom mode "location".

    Mike Bostock committed Sep 7, 2010
  2. Oops, forgot generated files.

    Mike Bostock committed Sep 7, 2010
  3. Upgrade website to 2.1.1.

    Mike Bostock committed Sep 7, 2010
  4. Fix bug in layer.visible. #operatorprecedencefail

    Mike Bostock committed Sep 7, 2010
  5. Add missing link to map.zoomBy. Add .htaccess.

    Mike Bostock committed Sep 7, 2010
  6. Update website to 2.1.0.

    Mike Bostock committed Sep 7, 2010
  7. Update documentation to 2.1.0.

    Mike Bostock committed Sep 7, 2010