[OpenLayers-Users] MapServer text label problems

2010-03-23 Thread Paco Gines
Hello all I'm having a problem with the labels using areas and a text label in the middle of the area: TYPE polygon STATUS on ….. DUMP TRUE LABELITEM NOMBRE CLASS LABEL TYPE truetype FONT arial-bold SIZE 17 force true POSITION cc COLOR 0 0 128 END END

Re: [OpenLayers-Users] BING and OpenLayers

2010-03-23 Thread Eric Lemoine
On Sun, Mar 21, 2010 at 7:47 PM, Roger André ran...@gmail.com wrote: Ok, I think I'll take the next step of fining a bug now. Hi You need restrictedExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) in the map options, so the WMS layer is restricted to the

[OpenLayers-Users] wfs response.features empty

2010-03-23 Thread Sarah Schuessler
Hi list, I want to load a wfs layer in my map. var wfs = new OpenLayers.Layer.Vector(wfs, {styleMap: styleMap, strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.WFS({ url: http://myserver:81/geoserver/wfs?;, featureNS: gn,

Re: [OpenLayers-Users] wfs response.features empty

2010-03-23 Thread bartvde
Hi, featureNS is a URI, not the prefix like you have defined. Check examples/wfs-protocol.html. Best regards, Bart Hi list, I want to load a wfs layer in my map. var wfs = new OpenLayers.Layer.Vector(wfs, {styleMap: styleMap, strategies: [new OpenLayers.Strategy.Fixed()],

Re: [OpenLayers-Users] wfs response.features empty

2010-03-23 Thread Sarah Schuessler
Hi Bart, thanks a lot! That solved my problem! I had a uri for featureNS at the beginning and it did not work-so something else was even not correct then. Cheers Sarah Hi, featureNS is a URI, not the prefix like you have defined. Check

Re: [OpenLayers-Users] MapServer text label problems

2010-03-23 Thread Paco Gines
Hi I've found the solution for tileCache: metaTile=yes metaBuffer=40 But, how with Openlayer? Thanx to all -- View this message in context: http://n2.nabble.com/MapServer-text-label-problems-tp4782963p4783191.html Sent from the OpenLayers Users mailing list archive at Nabble.com.

Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-23 Thread sunny74
Hi Robert, Thanks for your reply. how do u create the following files: HEADER ../templates/synlait_query_header.html TEMPLATE ../templates/synlait_query_body.html Pls send the html code for the above and also pls compare your format in these two files with the actual data of the .shp file

[OpenLayers-Users] read data from gml file

2010-03-23 Thread mario1...@libero.it
Hi, I have tried to read data from gml file, but I'm not able to extract features attributes. Here is my code: var in_options = { 'internalProjection': map.baseLayer.projection, 'externalProjection': map.baseLayer.projection,

[OpenLayers-Users] Rounded corner LayerSwitcher

2010-03-23 Thread Jordi Romagos i Figueras
Hi, I'm trying to customize Layer Switcher control and I have this problem: The propierty roundedCorner (http://dev.openlayers.org/docs/files/OpenLayers/Control/LayerSwitcher-js.html#OpenLayers.Control.LayerSwitcher.roundedCorner) is not working for me. This is my code (I tried all

Re: [OpenLayers-Users] Rounded corner LayerSwitcher

2010-03-23 Thread Eric Lemoine
On Tue, Mar 23, 2010 at 12:23 PM, Jordi Romagos i Figueras jordi_roma...@hotmail.com wrote: Hi, I'm trying to customize Layer Switcher control and I have this problem: The propierty roundedCorner

Re: [OpenLayers-Users] getFeatureCount function?

2010-03-23 Thread bartvde
What type of layer? Layer.Vector? Try layer.features.length. Best regards, Bart Hi all, exists any function to obtain the number of features of a Layer? F.ex: map.layers[i].getFeatureCount ___ Users mailing list Users@openlayers.org

Re: [OpenLayers-Users] Rounded corner LayerSwitcher

2010-03-23 Thread Jordi Romagos i Figueras
Thanks Eric, I'm using 2.8 version. Another questions when will be released 2.9 version? In this one I can modify layersDiv style also? Thanks another time! Date: Tue, 23 Mar 2010 13:10:42 +0100 Subject: Re: [OpenLayers-Users] Rounded corner LayerSwitcher From:

[OpenLayers-Users] How to get only attributes from WMS or WFS in Openlayers

2010-03-23 Thread zoggo
I need the attributes of a WFS or WMS without getting the geometry. If I load it with a normal WFS-Layer it takes to long downloading all the geometries. Is there a easy way getting only the attributes? Thanks for help! -- View this message in context:

Re: [OpenLayers-Users] getting Feature Info data directly from .shp files

2010-03-23 Thread sunny74
Hi Bwoodall, That example doesn't work. I am using the GetfeatureInfo example of OL27. My code is as follows: script type=text/javascript language=javascript var mapview, layer, layer1, map,base; OpenLayers.ProxyHost = OL27/examples/proxy.cgi?url=; // var map =

Re: [OpenLayers-Users] How to get only attributes from WMS or WFS in Openlayers

2010-03-23 Thread bartvde
Hi, you can specify propertyNames on the options when you call OpenLayers.Format.WFST write to only get a list of attributes back. See also: http://trac.openlayers.org/ticket/1827 I use a WFS DescribeFeatureType request to get the list of attributes and then I filter out the geometry attribute

Re: [OpenLayers-Users] getFeatureCount function?

2010-03-23 Thread Maribel Bernal
Hi bart, it works! thank you very much for your help!! Regards, Maribel. bart...@osgis.nl escribió: Hi, you need to listen to the loadend event of the layer, and then check the number of features. layer.events.register(loadend, layer, function() { alert(this.features.length); }); Best

Re: [OpenLayers-Users] MapServer text label problems

2010-03-23 Thread Andreas Hocevar
On 2010-03-23 11:00 , Paco Gines wrote: Hi I've found the solution for tileCache: metaTile=yes metaBuffer=40 But, how with Openlayer? Thanx to all Set the gutter option on the layer. In your case to 40. Regards, Andreas. -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert

[OpenLayers-Users] Lightbox gallery inside popup

2010-03-23 Thread Asle Benoni
Hello, Here is my problem: I have a page using MapFish and have asked this on the MapFish list but with no response. I have a OpenLayers popup and inside the popup I show some thumbnails. Clicking on the thumbnails should show the original in a lightbox. I have tried everything I know of without

Re: [OpenLayers-Users] BING and OpenLayers

2010-03-23 Thread Roger André
Thanks! Appreciate the tip. Is this documented somewhere? -- On Tue, Mar 23, 2010 at 1:33 AM, Eric Lemoine eric.lemo...@camptocamp.com wrote: On Sun, Mar 21, 2010 at 7:47 PM, Roger André ran...@gmail.com wrote: Ok, I think I'll take the next step of fining a bug now. Hi You need

[OpenLayers-Users] WMSGetFeatureInfo

2010-03-23 Thread Francesco D'Amore
Hi All I'm so Sorry if the my question will be trivial but a tried to find some thing in the mail list archive but it doesn't work! I'm very new bie in OpenLayers and I have a problem with WMSGetFeatureInfo. With GeoExt I try to use the control in order to get some information about WMS

[OpenLayers-Users] How can I change the displayed units of my scale control from 1:1M to 1:1000000

2010-03-23 Thread John Mitchell
For OpenLayers. Control. Scale the openlayers documentation states: The Scale control displays the current map scale as a ratio (e.g. Scale = 1:1M) It appears that my scale control is at a scale of 1:1M. How can I change the displayed units of my scale control from 1:1M to 1:100 Thanks,

Re: [OpenLayers-Users] BING and OpenLayers

2010-03-23 Thread Roger André
Hate to report this, but setting restrictedExtent does not resolve the problem. While it seems to prevent the WMS layer from being slid off the BING basemap permanently, the layers still move asynchronously when the map is panned. This means that after I am done panning and let go of the map, I

Re: [OpenLayers-Users] Get Feature Info in pop up working example

2010-03-23 Thread Robert Sanson
Hi There should be examples included in your apps\template directory if you installed Mapserver using MS4W. Anyway, if you want all attributes in your DBF and use text/plain, these don't even get used. Attached a couple of examples. Robert sunny74 sb@hotmail.com 23/03/2010 11:15 p.m.

Re: [OpenLayers-Users] getting Feature Info data directly from .shpfiles

2010-03-23 Thread Robert Sanson
Why have you got FORMAT: 'png' for a GetFeatureInfo request in your click event? I think you should work on getting a GetFeatureInfo request that works from your browser URL directly with Mapserver. Once you have the correct URL and a correct response from Mapserver, then you can work on

Re: [OpenLayers-Users] WMSGetFeatureInfo

2010-03-23 Thread Eric Lemoine
On Tuesday, March 23, 2010, Francesco D'Amore francesco.dam...@gmail.com wrote: Hi All I'm so Sorry if the my question will be trivial but a tried to find some thing in the mail list archive but it doesn't work! I'm very new bie in OpenLayers and I have a problem with