Re: [OpenLayers-Users] Removing a layer

2008-10-14 Thread Carlos Pinto
Thanks very much. I feel a little bit dum. But at least the problem is solved. Best, Carlos On Tue, Oct 14, 2008 at 5:01 PM, <[EMAIL PROTECTED]> wrote: > Probably this is because of the scope of your variable. > > If you define var in a function, it only has a local scope inside of > the

[OpenLayers-Users] Removing a layer

2008-10-14 Thread Carlos Pinto
Hi all, I am having one trouble and I don't know what else to do. I have my map and I have develop some javascript code that is working fine. What happened this weekend is that I developed a function that had that some layers in the beginning: var myStyle128684655922811250 = new OpenLayers.Style

[OpenLayers-Users] Including prototype

2008-07-30 Thread Carlos Pinto
Hi all, I had my webpage with openlayers and it was working fine. But when I included the lines: my map stops working. Does anybody know why? Thank you all. Carlos ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/u

Re: [OpenLayers-Users] Openlayers recommended load

2008-05-21 Thread Carlos Pinto
To generate the markers in WMS you will have to use some software like MapServer or GeoServer OpenLayers will only be the client. Carlos On Tue, May 20, 2008 at 6:15 PM, ashlin <[EMAIL PROTECTED]> wrote: > > ok. Thanks for the explanation. > > How can i generate my markers in WMS? Any sample f

Re: [OpenLayers-Users] Openlayers recommended load

2008-05-20 Thread Carlos Pinto
In the WMS layer they will be handle by the server, so you can have thousands of them, but if you do a marker layer then each marker is an object that the browser has to handle. The browsers are not made to handle those kinds of applications. Best regards, Calos On Tue, May 20, 2008 at 4:28 PM,

Re: [OpenLayers-Users] Can Openlayers read a GML from a webservice?

2008-04-11 Thread Carlos Pinto
0/08, Eric Lemoine <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 9, 2008 at 6:51 PM, Carlos Pinto <[EMAIL PROTECTED]> wrote: > > Hi all, > > Hi > > > > > sorry if it is a stupid question. > > But unfortunately I can't install mapserver because the IT

[OpenLayers-Users] Can Openlayers read a GML from a webservice?

2008-04-09 Thread Carlos Pinto
Hi all, sorry if it is a stupid question. But unfortunately I can't install mapserver because the IT department don't allow. So the solution I have found is make the query to the database and write a GML file. After that I pass the URL of the file to OpenLayers. But I thought, maybe instead of wri

Re: [OpenLayers-Users] Busy Cursor

2008-04-09 Thread Carlos Pinto
Hi all, I am using the library "http://www.openlayers.org/dev/lib/OpenLayers.js";>" but I have seen this post and I thought that is really a good idea to put a loading panel but when I had the line: map.addControl( new OpenLayers.Control.LoadingPanel({minSize: new OpenLayers.Size(600, 600)})

Re: [OpenLayers-Users] Loading a GML

2008-03-27 Thread Carlos Pinto
Carlos On Thu, Mar 27, 2008 at 12:43 PM, Christopher Schmidt < [EMAIL PROTECTED]> wrote: > On Thu, Mar 27, 2008 at 10:59:40AM +0100, Carlos Pinto wrote: > > Hi all, > > > > I'm loading a GML file that contains a density grid of values. > > > > In firef

[OpenLayers-Users] Loading a GML

2008-03-27 Thread Carlos Pinto
Hi all, I'm loading a GML file that contains a density grid of values. In firefox it is slow, but the same file in IE takes almost five minutes to load. Does anyone have an idea how to make it faster The GML contains 1000 polygons that have 10 classes. To load the file I'm using the code:

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
hing below is perfect, except that you need to add: > > 1 > > instead of > > 1 > > And yes, you should add the {styleMap: styleMap} options hash to your > GML layer constructor. Or, after constructing the layer, just do > > myLayer.styleMap = styleMap; > >

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
myLayer.styleMap = styleMap;*/// This one :( so the rectangles don't appear* map.addLayer(mylayer); On Wed, Mar 5, 2008 at 3:35 PM, Carlos Pinto <[EMAIL PROTECTED]> wrote: > Hi Andreas, > > sorry to keep bothering, but when I add this line the

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
styleMap: styleMap} options hash to your > GML layer constructor. Or, after constructing the layer, just do > > myLayer.styleMap = styleMap; > > Regards, > Andreas. > > Carlos Pinto wrote: > > Hi all, > > > > then, if I use OpenLayers 2.6 I can use this feature, ca

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
efault" intent styleMap.addUniqueValueRules("default", "type", lookup); layer = new OpenLayers.Layer.Vector('Points', { styleMap: styleMap }); layer.addFeatures(features); map.addLayer(layer

Re: [OpenLayers-Users] Layer rendering

2008-02-29 Thread Carlos Pinto
> example. You could also use SLD to define your styles. In that case, > look at http://www.openlayers.org/dev/examples/sld.html for an example. > > Things get much easier if you apply > http://trac.openlayers.org/attachment/ticket/1373/1373-r6361-A0.patch to > the current trunk

Re: [OpenLayers-Users] Layer rendering

2008-02-26 Thread Carlos Pinto
n Tue, Feb 26, 2008 at 04:13:10PM +0100, Carlos Pinto wrote: > > Hi all, > > > > Can anyone explain why when I run the example: > > > > http://www.openlayers.org/dev/examples/kml-layer.html > > > > it appears a line and 3 polygons with 3 different colors a

[OpenLayers-Users] Layer rendering

2008-02-26 Thread Carlos Pinto
Hi all, Can anyone explain why when I run the example: http://www.openlayers.org/dev/examples/kml-layer.html it appears a line and 3 polygons with 3 different colors and if I use exactly the same code with the same layer, the polygons are replaced by one line? The code is this:

[OpenLayers-Users] Detecting a click in a feature

2008-02-22 Thread Carlos Pinto
Hi all, I was using google maps and last week I decided to use OpenLayers, so I'm quite a new user. So now I'm changing all my code to OpenLayers, but I have this problem that I was adding features from a database and then I was showing the balloons with the description. Now I want to show it in