I'm new to openLayers. I have parcel data stored in a geojson file, and it's pretty huge - there are about 170,000 records. I would load the data as a WMS, but I want the features to highlight in a different color on mouseover. I'm following this example:
http://openlayers.org/en/v3.2.1/examples/vector-layer.html?q=geojson
I'm assuming I can't apply this functionality with a WMS layer? But the performance is just too slow with the geojson. I've also tried setting maxResolution and minResolution for the vector layer but it doesn't seem to make a difference - it also doesn't seem to work no matter what I set the values to (but I could be doing something wrong - I don't yet know how the resolutions correspond to zoom levels). Does anyone have any suggestions on how I can make this work?
أكثر...
http://openlayers.org/en/v3.2.1/examples/vector-layer.html?q=geojson
I'm assuming I can't apply this functionality with a WMS layer? But the performance is just too slow with the geojson. I've also tried setting maxResolution and minResolution for the vector layer but it doesn't seem to make a difference - it also doesn't seem to work no matter what I set the values to (but I could be doing something wrong - I don't yet know how the resolutions correspond to zoom levels). Does anyone have any suggestions on how I can make this work?
أكثر...