Hi All, I have made some progress, and have a sort of working map up at (please ignore the links at the top, it’s a work in progress). As you can see, the popups now contain the results of the wfs query, but there are far too many sets of coordinates for each point, and no formatting. I have been looking around and have come across openlayers.parsexmlstring- is this something I could use to format these results? I’m afraid my ajax skills are non-existent so if I’m asking stupid questions I apologise! All the best Jo Cook — View this message in context: Sent from the OpenLayers Users mailing list archive at Nabble.com. Jeff Dege wrote: &gt, I’m trying to draw polygons in a different color than the default. But &gt, I’ve only managed to change the color of the drawn polygons. &gt, Currently, the handler that does the drawing (Point, Path, or Polygon) is in charge if the style of your sketches (features before they are completed). You can change the options for the handler by passing a handlerOptions object in your control constructor. So, something like this would work: var options = { handlerOptions: { freehand: true, style: { fillColor: ‘yellow’, fillOpacity: 0.4, strokeColor: ‘green’, strokeOpacity: 1, strokeWidth: 1, pointRadius: 6 } } }, var control = new OpenLayers.Control.DrawFeature(polygonLayer, OpenLayers.Handler.Polygon, options), Now your polygon sketches will have a green outline and a yellow fill. Note that this is subject to change before the release of 2.4. Tim Hi All, I have an openlayers map where the overlay is a set of points generated from a wfs feed. I would like to use popups to display results about a point (or points) when I click on one. Currently I have been experimenting with the simple getfeatureinfo request to a separate frame on the page, but the results are unformatted (and display the positions of each point three times, I’m not sure why). I’m not really sure how to make this work in a nicely formatted way with a popup. I was wondering if I could use something like simplexml to format the results, but I am quite new to this and not really sure this is the correct approach. Is there another way- I have seen a few examples but only live, so I have only been able to look at the parsed php rather than the initial code. I would be very grateful if someone could give me some pointers on how to approach this. Many thanks Jo Cook ——————————————- Joanne Cook BSc MLitt AIFA MBCS Information Systems Coordinator Oxford Archaeology North ——————————————- This message has been scanned for viruses by BlackSpider MailControl – www.blackspider.com Jeff Dege wrote: &gt, I’m trying to draw polygons in a different color than the default. But &gt, I’ve only managed to change the color of the drawn polygons. &gt, Currently, the handler that does the drawing (Point, Path, or Polygon) is in charge if the style of your sketches (features before they are completed). You can change the options for the handler by passing a handlerOptions object in your control constructor. So, something like this would work: var options = { handlerOptions: { freehand: true, style: { fillColor: ‘yellow’, fillOpacity: 0.4, strokeColor: ‘green’, strokeOpacity: 1, strokeWidth: 1, pointRadius: 6 } } }, var control = new OpenLayers.Control.DrawFeature(polygonLayer, OpenLayers.Handler.Polygon, options), Now your polygon sketches will have a green outline and a yellow fill. Note that this is subject to change before the release of 2.4. Tim Source.

Search Vector Map

Share it now, please!

If you can`t find the vector map of country or city you are looking for, or need some objects to be added, please feel free to contact >>> our friendly team. We draw it in less than 24 hours. All formats: .PDF; .DWG; .AI; .EPS; .CDR; .DXF; .DWG; .PPT