Changeset 9594


Ignore:
Timestamp:
Aug 28, 2011, 2:01:03 PM (13 years ago)
Author:
rick
Message:

Nice hack for showing all nodes using geojson.

Location:
src/django_gheat/wlheatmap
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/wlheatmap/static/heatmap.js

    r9587 r9594  
    9292  };
    9393  var style = new OpenLayers.Style(template, {context: context});
    94   var geojson = new OpenLayers.Layer.GML("GeoJSON", "/static/nodes.json", {
     94  var geojson = new OpenLayers.Layer.GML("GeoJSON", "feature/nodes.json", {
    9595    projection: new OpenLayers.Projection("EPSG:4326"),
    9696    styleMap: new OpenLayers.StyleMap(style),
  • src/django_gheat/wlheatmap/urls.py

    r9549 r9594  
    1717    url(r'^tile/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$', 'tile.serve_tile'),
    1818    url(r'^nodelist/(?P<zoom>\d+),(?P<lat>[0-9.]+),(?P<lon>[0-9.]+)$', 'nodelist.serve_nodelist'),
     19    url(r'^feature/nodes.json$', 'feature.nodes_json'),
    1920    url(r'^filters/$', 'filters.serve_filters'),
    2021)
Note: See TracChangeset for help on using the changeset viewer.