Re: [OpenLayers-Users] How to replace country color with image ?

2009-09-01 Thread Jerome Freyre
Hi Jan, I search for a solution but without success... I tried some scripts but it was the same result... nothing! I think it is not possible to define a background picture for a polygon but only for features like points... And unfortunately, I have no other options for now ... Best

Re: [OpenLayers-Users] maxResolution for a WMS layer

2009-09-01 Thread Guillaume Sueur
Eric Lemoine a écrit : On Monday, August 31, 2009, Guillaume Sueur no-re...@neogeo-online.net wrote: Setting maxResolution after adding layer to the map did the trick. Setting maxResolution in the config object passed to the constructor it does not should work. If it does not, I guess

[OpenLayers-Users] File KML generated does not contains any style information

2009-09-01 Thread mario1...@libero.it
Hi all, I'm trying to export kml using 'write' function. The kml file is generated but it doesn't contains any style information (color, image etc.) and it's represented on Google Earth as a white line. How can I put the style information in the file? Here is just a part of my code: var gml3

Re: [OpenLayers-Users] File KML generated does not contains any style information

2009-09-01 Thread bartvde
Hi, your question was already answered yesterday, can you please stop reposting this question? TIA. http://openlayers.org/pipermail/users/2009-August/013525.html Best regards, Bart Hi all, I'm trying to export kml using 'write' function. The kml file is generated but it doesn't contains any

[OpenLayers-Users] Style WFS layer by attributes

2009-09-01 Thread AlessioDL
Hi, I have this WFS layer from my UMN-Mapserver //Vector layer style var area_style = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']); area_style.strokeWidth = 1.5; area_style.strokeColor = #ff; area_style.fillOpacity = 0.75; //Layer definition qAreas

[OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-01 Thread Max Stephan
Hi list, I´m actually implementing a drawfeature-control for my web-GIS. Everything´s working fine so far but now I want to add a little more functionality: - the user should be able to specify the appearance of the features he´s adding. This shall only have an effect on the features he´s adding

Re: [OpenLayers-Users] Style WFS layer by attributes

2009-09-01 Thread Jerome Freyre
Hi Alessio, You can define a style and, depending a context, assign different value. Here is an example that change the fillcolor of feature depending on the attribute state of each feature. Note that the context is automatically applied to features. Nothing to activate ;) new

Re: [OpenLayers-Users] Where to get map servers that can be used by openlayers

2009-09-01 Thread Jerome Freyre
Hi, I think you have to look at www.openstreetmap.org Else, you have to googlise public wms and the first result seems to be useful http://www.skylab-mobilesystems.com/en/wms_serverlist.html ;) Best Regards, Jérome balachandra maddina wrote: Hi There, Im pretty new to maps(gis

Re: [OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-01 Thread Alexandre Dube
Hi Max, Here's an old demo that could help you for some of your needs : http://dev4.mapgears.com/bdga/bdgaWFS-T.html Simply click on a feature. This demonstrate a way to edit feature's attributes in a form. If your data is stored in a DB, you don't need to take care of the id

Re: [OpenLayers-Users] Style WFS layer by attributes

2009-09-01 Thread AlessioDL
Hi Jerome, probably I don't understood exactly how to apply your suggestion... If I use new OpenLayers.Style I can't apply any style to my features. The only way to style them appear to be: OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']) So I need to do something like

Re: [OpenLayers-Users] Style WFS layer by attributes

2009-09-01 Thread Jerome Freyre
Try to apply a stylemap to your vector layer. // Creation of a stylemap myStyles = new OpenLayers.StyleMap({ default: new OpenLayers.Style({ strokeColor: ${getFillColor}, fillColor: ${getFillColor}, strokeWidth: 2, strokeOpacity: 1,

Re: [OpenLayers-Users] How to replace country color with image ?

2009-09-01 Thread David Fawcett
Jerome, I don't know anything about your application and the infrastructure that you are running it on. If you are using MapServer to serve WMS or WFS layers to your OpenLayers app, I have a different approach that could work for you. Instead of using an OpenLayers vector layer, you could use a

Re: [OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-01 Thread Max Stephan
Hi Alexandre, I got it working now. The Problem was that in the function that was triggered by the featureadded-event I tried something like feature.id and not evt.feature.id. I registered the event via drawFeatureControlName.events.register(featureadded, ' ' , function). But, as always, one

Re: [OpenLayers-Users] Style WFS layer by attributes

2009-09-01 Thread AlessioDL
Jerome Freyre wrote: Try to apply a stylemap to your vector layer. Yes! It worked :D Thank you very much Jerome -- View this message in context: http://n2.nabble.com/Style-WFS-layer-by-attributes-tp3559456p3560917.html Sent from the OpenLayers Users mailing list archive at

[OpenLayers-Users] Markers and IDs

2009-09-01 Thread Adrián Ribao Martínez
Hello everybody, I'm setting up a map which uses markers, and when the user clicks the marker an information box is loaded with an ajax request. I need to identify the markers (the ID of the ddbb row for example) so I can retrieve the right information from the ddbb. Right now I'm using the

Re: [OpenLayers-Users] Can OpenLayers APIs merge line features

2009-09-01 Thread Stephen Woodbridge
Kevin Yang wrote: Hello everyone, A problem troubled me for a long time. Can OpenLayers APIs merge line features ?I use this function to solve the following problem: When I calculate the shortest path, I get the WKTs of the LineStrings, but it is not arranged in sequence.So I cannot use

[OpenLayers-Users] created a new SR-ORG id on spatialreference.org but now need to revise the definition

2009-09-01 Thread stephane.poirier
Hi All, I created a new SR-ORG id on spatialreference.org (http://www.spatialreference.org/ref/sr-org/6728/proj4js/) but now, I need to revise some of its definition (proj4js's +lat_ts=90 needs to be +lat_ts=60 ). Also, must one absolutely go through the WKT definition to define the SR-ORG

Re: [OpenLayers-Users] IE7 vector rendering error

2009-09-01 Thread Eric Lemoine
On Tuesday, September 1, 2009, Jo Cook j.c...@oxfordarch.co.uk wrote: Dear All, I am using revision 9635 of openlayers (via the MapFish svn), and have just created a single file library for openlayers to speed up this page: http://mapdata.thehumanjourney.net/vgswandb_new.html In IE7