UTFGrid seems like a good way to add interaction if your features are
rendered to tiles on the server. With what I did the features get
rendered by the client, and styled by the client. An advantage I see to
using client rendered features vs UTFGrid for hit detection is that the
client rendered OpenLayers.Features can change color when moused over or
selected, where UTFGrid depends on a static rendering provided by the
server, unless I've missed something. Otherwise the tradeoffs seems to
be typical server-vs-client rendering things.
Thanks for the pointer.
-- Jack
On 02/18/14 08:17, Greg Allensworth wrote:
You may be interested in UTFGrid:
http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/utfgrid.html
This is one technique for fetching server-side "tiles" of vector
information linked to geographic location, then adding mouse events
such as hovers.
UTFgrid-compatible output can be generated from TileStache. I'm not
sure what other server-side map servers will generate
UTFgrid-compatible "JSON tiles" -- as far as I know MapServer and
TileCache won't.
-g
On 2/16/2014 4:30 PM, Jack Greenbaum wrote:
I'm building a viewer for a GIS database with a large number of points.
In thinking about how render the features so they are selectable in a
scalable way, it seemed that using GeoJSON tiles with decluttering per
tile might be a way to go, just like map tiles. I didn't see a way to
display tiled GeoJSON in OL2, so I put together a new OpenLayer.Tile
class to be used with an OpenLayer.Layer.XYZ layer to manage marshaling
features on and off a Vector layer as the map scrolls and zoom. It is a
pretty simple hack. You can see an example at
http://www.greenbaum.org/openlayers/examples/geojson-feature-popup.html.
The code is on github, here is the commit,
https://github.com/jgreenbaum/openlayers/commit/5de4a17049ca48f46b69c645111a3c5e5bfb4f4d.
Did I miss something, was there already a way to display tiled GeoJSON
like this? If I didn't miss something, is this useful code?
-- Jack
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users