Re: [OpenLayers-Users] Problems with Google and projection

2008-03-05 Thread Tim Schaub
Hey- giris68 wrote: > Hi! > I'm an newbee to OL and have now spent a week trying to draw an polygon on > an GoogleMap. > My last attempt is an slight modification of the geoRSS demo. > > I have to problems, maybe the first one is caused by the second... > > 1. The polygon doesn't sync on the ma

[OpenLayers-Users] Problems with Google and projection

2008-03-05 Thread giris68
Hi! I'm an newbee to OL and have now spent a week trying to draw an polygon on an GoogleMap. My last attempt is an slight modification of the geoRSS demo. I have to problems, maybe the first one is caused by the second... 1. The polygon doesn't sync on the map where i draw with the mouse. Obvio

[OpenLayers-Users] Custom LayerSwitcher

2008-03-05 Thread Julien-Samuel Lacroix
Hi, I wonder if anyone can share an example of a custom layer switcher. We would like to group some layer together and have a tree menu as layer switcher. Any example of custom layer switcher would be fine even if doesn't have groups. Thanks Julien -- Julien-Samuel Lacroix Mapgears http://www

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Coryat
http://trac.openlayers.org/wiki/UsingCustomTiles I made the suggested additions to this page. I believe this should help the average GMAPI users. - John Coryat, USNaviguide LLC http://maps.huge.info http://www.usnaviguide.com -- View this message in context: http://www.nabble.com/Google-

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Erik Uzureau
Thanks for your help with this, Corey! Erik On 3/5/08, Christopher Schmidt <[EMAIL PROTECTED]> wrote: > On Wed, Mar 05, 2008 at 09:22:33AM -0800, Coryat wrote: > > > > > > > > Christopher Schmidt-4 wrote: > > > > > > Would you be willing to edit the text of > > > http://trac.openlayers.org/wiki/Us

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Christopher Schmidt
On Wed, Mar 05, 2008 at 09:22:33AM -0800, Coryat wrote: > > > > Christopher Schmidt-4 wrote: > > > > Would you be willing to edit the text of > > http://trac.openlayers.org/wiki/UsingCustomTiles to explain this? Note > > that these things are all new since I wrote that wiki page: at the time, >

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Coryat
Christopher Schmidt-4 wrote: > > Would you be willing to edit the text of > http://trac.openlayers.org/wiki/UsingCustomTiles to explain this? Note > that these things are all new since I wrote that wiki page: at the time, > there *was* no such thing as displayProjection :) (I added it for OSM >

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Christopher Schmidt
On Wed, Mar 05, 2008 at 08:54:33AM -0800, Coryat wrote: > > > euzuro wrote: > > > > So it turns out all this was already set up. For anyone looking for > > help setting up google tile site, see: > > > > http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#HowdoIloadtilesIhavethatIgeneratedf

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Coryat
euzuro wrote: > > So it turns out all this was already set up. For anyone looking for > help setting up google tile site, see: > > http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#HowdoIloadtilesIhavethatIgeneratedforGoogleMapsinOpenLayers > > thanks chris for pointing that out. > erik

Re: [OpenLayers-Users] marker help with tilecache

2008-03-05 Thread Aco
Thanks Eric for the reply, But sorry what do you mean by mixing projections, I know that using the layer called "ol_wms" instead of "layer" in my javascript code that everything works fine. So when I am not caching any tiles it works fine, but when i am then I can't add any new layers such as mark

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Erik Uzureau
So it turns out all this was already set up. For anyone looking for help setting up google tile site, see: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#HowdoIloadtilesIhavethatIgeneratedforGoogleMapsinOpenLayers thanks chris for pointing that out. erik On 3/5/08, Erik Uzureau <[EMAIL

Re: [OpenLayers-Users] marker help with tilecache

2008-03-05 Thread Eric Lemoine
Hello, you're mixing projections, which looks suspicious to me. 2008/3/5, Aco <[EMAIL PROTECTED]>: > > I am still trying to figure out this problem, please any help would be > appreciated. > I really cannot find a solution anywhere else and my biggest hope is this > forum. > Any thoughts ? > > Tha

Re: [OpenLayers-Users] marker help with tilecache

2008-03-05 Thread Aco
I am still trying to figure out this problem, please any help would be appreciated. I really cannot find a solution anywhere else and my biggest hope is this forum. Any thoughts ? Thanks Again, Aleks Aco wrote: > > Hi and thanks to all the replies in advance, > > I am relatively new to til

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Erik Uzureau
I was thinking specifically of the "I have a custom gmaps layer, how can I use that in OpenLayers?" question... but if you say that's already done, then golden! Maybe it would be good to add an entry to our FAQ to point people to that example, though? I don't know much about any of this stuff, I'

Re: [OpenLayers-Users] WFS layers loaded are not visible [Solved]

2008-03-05 Thread Alessio Di Lorenzo
You're right Christopher. By changing the allowedHosts var like the following (without 'http://' before 'localhost') allowedHosts = ['www.openlayers.org', 'openlayers.org', 'labs.metacarta.com', 'world.freemap.in', 'prototype.openmnnd.org', 'geo.openplans.org',

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Christopher Schmidt
On Wed, Mar 05, 2008 at 09:43:56AM -0600, Erik Uzureau wrote: > Chis, do you think it would be helpful if we added this or a similar > example to the /examples directory? > > ...or is there maybe an example already there that does this? Which part? The spherical-mercator example shows how to use

Re: [OpenLayers-Users] Google-like tiles in an example

2008-03-05 Thread Erik Uzureau
Chis, do you think it would be helpful if we added this or a similar example to the /examples directory? ...or is there maybe an example already there that does this? erik On 3/4/08, Christopher Schmidt <[EMAIL PROTECTED]> wrote: > On Tue, Mar 04, 2008 at 06:16:44PM -0800, Coryat wrote: > > > >

Re: [OpenLayers-Users] External use of proj4js?

2008-03-05 Thread Mike Adair
Hufjan, It looks like the SRS input fields on that form need an onchange event to load the projection definition, i.e. just typing in a SRS code in the field doesn't create the Proj4js object required, that only gets created by selecting a code from the drop down list. We can fix that, but if

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Andreas Hocevar
Carlos, Carlos Pinto wrote: > var mylayer = new OpenLayers.Layer.GML("GML", > "../KML/MyPolygons.xml",{styleMap: styleMap} ); > map.addLayer(mylayer); > } > > > but one thing funny is that if I use the line > > myLayer.styleMap = styleMap; > > it does no

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
Hi all, Thanks very much. It is working and now I can start doing my grids. the code is: var styleMap = new OpenLayers.StyleMap({ fillOpacity: 1}); var lookup = { 0: {fillColor: "green", fillOpacity: 1, strokeColor: "green"}, 1: {fillCol

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
Sorry, The line that makes it not working is another one: var styleMap = new OpenLayers.StyleMap({ fillOpacity: 1, pointRadius: 10 }); var lookup = { 0: {fillColor: "green", fillOpacity: 1, strokeColor: "green"},

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
Hi Andreas, sorry to keep bothering, but when I add this line the polygons don't appear :( var lookup = { 0: {fillColor: "green", fillOpacity: 0.7, strokeColor: "green"}, 1: {fillColor: "red", fillOpacity: 0.7, strokeColor: "red"} } // until here it is everything ok

Re: [OpenLayers-Users] WFS layers loaded are not visible [Solved]

2008-03-05 Thread Christopher Schmidt
On Wed, Mar 05, 2008 at 02:46:28PM +0100, Alessio Di Lorenzo wrote: > Hi all, > > the solution was very simple: > > - the proxy.cgi was correct No: proxy.cgi uses hostnames, not URLs. You needed to remove the http:// > - the javascript code was also correct but I had to change the line > >

Re: [OpenLayers-Users] WFS layers loaded are not visible [Solved]

2008-03-05 Thread Alessio Di Lorenzo
Hi all, the solution was very simple: - the proxy.cgi was correct - the javascript code was also correct but I had to change the line OpenLayers.ProxyHost="/cgi-bin/proxy.cgi/?url="; in OpenLayers.ProxyHost='' "; It works quite well (a little slow if I consider to be in localhost) and the wf

Re: [OpenLayers-Users] WMS filter and redraw

2008-03-05 Thread Bart van den Eijnden (OSGIS)
Use mergeNewParams. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl - Oorspronkelijk bericht Van: Andrea Maschio <[EMAIL PROTECTED]> Naar: users@openlayers.org Onderwerp: [OpenLayers-Users] WMS filter and redraw Datum: 05/03/08 09:24 > Hi

[OpenLayers-Users] WMS filter and redraw

2008-03-05 Thread Andrea Maschio
Hi all, i have a filter on a WMS layer, with a PropertyIsGreaterThan and a date property. What I'd like to do is to change at runtime the date with which the property is compared, and the redraw the layer. Probably I could destroy the layer and rebuild a new layer with the filter: property prop

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Andreas Hocevar
Carlos, Carlos Pinto wrote: > Hi all, > > Maybe it is a problem with my install of OpenLayers, I have version 2.5 > > But this exemple don't show the Markers in my computer, > It shows the map but not the markers, shoud I download the version 2.6? > what am I doing wrong? > your example uses Open

Re: [OpenLayers-Users] Layer rendering

2008-03-05 Thread Carlos Pinto
Hi all, Maybe it is a problem with my install of OpenLayers, I have version 2.5 But this exemple don't show the Markers in my computer, It shows the map but not the markers, shoud I download the version 2.6? what am I doing wrong? Thanks, Carlos #map { width: 800p