- map.zoomToExtent(new OpenLayers.Bounds(<?php echo $aPointPolygon['minlon']?>, <?php echo $aPointPolygon['minlat']?>, <?php echo $aPointPolygon['maxlon']?>, <?php echo $aPointPolygon['maxlat']?>).transform(proj_EPSG4326, proj_map));
+ freader = new OpenLayers.Format.WKT({
+ 'internalProjection': proj_map,
+ 'externalProjection': proj_EPSG4326
+ });
+
+ var feature = freader.read('<?php echo $aPointDetails['outlinestring'];?>');
+ if (feature) {
+ map.zoomToExtent(feature.geometry.getBounds());
+
+ feature.style = {
+ strokeColor: "#75ADFF",
+ fillColor: "#F0F7FF",
+ strokeWidth: <?php echo ($aPointDetails['isarea']=='t'?'2':'5');?>,
+ strokeOpacity: 0.75,
+ fillOpacity: 0.75,
+ pointRadius: 100
+ };
+ vectorLayer.addFeatures([feature]);
+ }