- 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'];?>');
+ var featureCentre = freader.read('POINT(<?php echo $aPointDetails['lon'];?> <?php echo $aPointDetails['lat'];?>)');
+ 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: 50
+ };
+
+<?php if ($aPointDetails['isarea']=='t') {?>
+ featureCentre.style = {
+ strokeColor: "#008800",
+ fillColor: "#338833",
+ strokeWidth: <?php echo ($aPointDetails['isarea']=='t'?'2':'5');?>,
+ strokeOpacity: 0.75,
+ fillOpacity: 0.75,
+ pointRadius: 8
+ };
+ vectorLayer.addFeatures([feature,featureCentre]);
+<?php } else { ?>
+ vectorLayer.addFeatures([feature]);
+<?php } ?>
+ }