Oh, that's a very nice solution, I just have to pass a centroid for each polygon in my geojson file, thanks so much!
Saha Aswina wrote: > check here http://ian01.geog.psu.edu/geoserver_docs/apps/gaz/together.html > for > selection function and > next page http://ian01.geog.psu.edu/geoserver_docs/apps/gaz/finishing.html > for > zoom function > > > ----- Pesan Asli ---- > Dari: percy <[email protected]> > Kepada: [email protected] > Terkirim: Sel, 14 Desember, 2010 04:24:00 > Judul: [Users] linked grid and map > > Hi, > > I'm using a featurestore to populate a grid and map [1], with the > GeoExt.grid.FeatureSelectionModel linking the two so that when the user > clicks on a polygon feature the grid hilights the corresponding row, and > scolls to it. > > This works great! > > Is there a simple way to get the reverse functionality in the map so > that when a row is clicked it hilights the map feature (it does that > now, of course), and ZOOMS to it? > > It seems like it might be through the onSelect property of > OpenLayers.Control.SelectFeature... > > Thanks again for a great project and all of the awesome tutorials and > documentation! > > Cheers, > Percy > > [1] http://mkn.geos.pdx.edu/maps/poverty_acs2010/ > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
