I'm having trouble getting Openlayers to zoom to a polygon extent using "map.zoomToExtent(vector.getDataExtent());" The object parsed as WKT loads and displays fine but I want to zoom to the polygon extent. I have a bunch of these to do, so manually setting it is not an option.
This is an adaptation of the standard WKT parsing example.
WKT example
أكثر...
This is an adaptation of the standard WKT parsing example.
WKT example
أكثر...