Re: [OpenLayers-Users] Saving with a Google Maps base layer

2009-04-28 Thread Tom B
Great, this sounds promising, at the very least. Many thanks for all the input on this; Gregor, definitely let us know how it goes if you're able to swing the development on it. This seems like something that might be of interest to many folks. Thanks, Tom Christopher Schmidt-2 wrote: > > On

Re: [OpenLayers-Users] Error when using XMLHTTPRequest (throughrefreshing a wfs layer every n seconds)

2009-04-28 Thread Roald de Wit
Christopher Schmidt wrote: > Kris, > > Thanks for the work on this. Two things: > * Since the XMLHttpRequest code is, as I understand it, primarily taken >from the XMLHttpRequest project (that you linked); are the changes >that you put in that file already included in1.0.3 of XMLHttpReques

Re: [OpenLayers-Users] Setting default header parameter for all ajax requests

2009-04-28 Thread Roald de Wit
Hi Milan, Even if you could pass the password into the request, this password could easily be found by anyone by looking at the request or source code. If you want this to work and keep the password secret, I think you'd need to pass all your WMS requests (that need authentication) through a prox

Re: [OpenLayers-Users] Saving with a Google Maps base layer

2009-04-28 Thread Christopher Schmidt
On Tue, Apr 28, 2009 at 01:59:05PM -0700, Gregor at HostGIS wrote: > Chris Adams wrote: > > How about this? > > http://code.google.com/apis/maps/documentation/staticmaps/ > > Hey, nice! > > I do see 1 issue with some uses: "640x640 is the largest image size > allowed" So you may have to figure u

Re: [OpenLayers-Users] Saving with a Google Maps base layer

2009-04-28 Thread Christopher Schmidt
On Tue, Apr 28, 2009 at 01:31:58PM -0700, Tom B wrote: > > Hi, > > I'm trying to give users the option of saving/printing a map, and I'm > currently working off the "tile stitching" code to create a composite image > of the map's layers: > http://trac.openlayers.org/wiki/Printing > > Since the O

Re: [OpenLayers-Users] Saving with a Google Maps base layer

2009-04-28 Thread Gregor at HostGIS
Chris Adams wrote: > How about this? > http://code.google.com/apis/maps/documentation/staticmaps/ Hey, nice! I do see 1 issue with some uses: "640x640 is the largest image size allowed" So you may have to figure up, say, 4 references points within the image and make those queries to get the ima

[OpenLayers-Users] Who is using OpenLayers in higher education, libraries, and/or conservation?

2009-04-28 Thread Sebastian Benthall
Hello, I am conducting research into who is using OpenLayers in projects in: * higher education * libraries * conservation and the environment If you are involved in any projects like these I'd love to hear about it, even if it's just the name of the project and a link. Thanks! -- Sebastian B

Re: [OpenLayers-Users] Saving with a Google Maps base layer

2009-04-28 Thread Chris Adams
How about this? http://code.google.com/apis/maps/documentation/staticmaps/ Tom B wrote: > Hi, > > I'm trying to give users the option of saving/printing a map, and I'm > currently working off the "tile stitching" code to create a composite image > of the map's layers: > http://trac.openlayers.org

Re: [OpenLayers-Users] Saving with a Google Maps base layer

2009-04-28 Thread Gregor at HostGIS
> More generally: I didn't see any conclusive threads about adding Google Maps > layers to a composite image--has anyone done this? To my knowledge, the GM API and the OL API over top of it do not expose enough information to fetch the URLs. GM changes their naming scheme now and then, so any su

[OpenLayers-Users] Saving with a Google Maps base layer

2009-04-28 Thread Tom B
Hi, I'm trying to give users the option of saving/printing a map, and I'm currently working off the "tile stitching" code to create a composite image of the map's layers: http://trac.openlayers.org/wiki/Printing Since the OpenLayers.Layer.Google class doesn't have a "grid" property, the Google M

Re: [OpenLayers-Users] Setting default header parameter for all ajax requests

2009-04-28 Thread Christopher Schmidt
On Tue, Apr 28, 2009 at 06:45:17PM +0200, Milan Antonovic wrote: > Hi all, > I have a question for you.. > I would like to set the default header parameter for all the openlayers ajax > request, even that used by OpenLayers.Layer.Wms. WMS requests don't go through AJAX, so this is not possible in

[OpenLayers-Users] Setting default header parameter for all ajax requests

2009-04-28 Thread Milan Antonovic
Hi all, I have a question for you.. I would like to set the default header parameter for all the openlayers ajax request, even that used by OpenLayers.Layer.Wms. That's because I need to set the "Authorization" parameter in the header with user and password for my WMS Layers. I've tried with: Ope

Re: [OpenLayers-Users] triggering a featureselected event?

2009-04-28 Thread Chris Abraham
Thanks. What's the right way to use layer.events.triggerEvent? I tried this: layer.events.triggerEvent('featureunselected', layer.selectedFeatures [0]) and layer.events.triggerEvent('featureunselected', {'feature':layer.selectedFeatures[0]}) but nothing happened. Chris On Apr 28, 2009, a

Re: [OpenLayers-Users] triggering a featureselected event?

2009-04-28 Thread Christopher Schmidt
On Tue, Apr 28, 2009 at 11:42:39AM -0400, Chris Abraham wrote: > Chris, > Thanks for the quick reply. > > I have actually already assigned this code to my featureselected and > featureunselected events for my markers. The problem with just > running the code in the onFeatureSelect function is

Re: [OpenLayers-Users] triggering a featureselected event?

2009-04-28 Thread Chris Abraham
Chris, Thanks for the quick reply. I have actually already assigned this code to my featureselected and featureunselected events for my markers. The problem with just running the code in the onFeatureSelect function is that it doesn't close previously opened popups. I was hoping that by ex

Re: [OpenLayers-Users] Error when using XMLHTTPRequest (throughrefreshing a wfs layer every n seconds)

2009-04-28 Thread Christopher Schmidt
On Tue, Apr 28, 2009 at 10:20:10AM +0200, Kris Geusebroek wrote: > Hi all, > > > > Found the solution to this and wanted to share that with you ;-) > > > > Everytime a new read was done on the layer through refreshing the > refresh event triggered the update of the BBOX strategy. Here the a

Re: [OpenLayers-Users] triggering a featureselected event?

2009-04-28 Thread Christopher Schmidt
On Tue, Apr 28, 2009 at 11:20:42AM -0400, Chris Abraham wrote: > Hi, > I'm trying to make links on a page open the popups on features on a > map. I'm trying to accomplish this by triggering a featureselected > event on the feature but I'm not sure how to do this. I have a > reference to the

[OpenLayers-Users] triggering a featureselected event?

2009-04-28 Thread Chris Abraham
Hi, I'm trying to make links on a page open the popups on features on a map. I'm trying to accomplish this by triggering a featureselected event on the feature but I'm not sure how to do this. I have a reference to the feature in my code. Does anyone know how to trigger the event? Chris

Re: [OpenLayers-Users] Error when using XMLHTTPRequest (throughrefreshing a wfs layer every n seconds)

2009-04-28 Thread Frederic Junod
Hello, Same error here, and the patch fixes the problem thanks. The smallest test case is: var protocol = new OpenLayers.Protocol.HTTP(); protocol.abort(protocol.read()); With FF 3.0.9 linux, I (sometimes !) have the following error (in the firebug console): uncaught exception: [Exception...

Re: [OpenLayers-Users] Error when using XMLHTTPRequest (throughrefreshing a wfs layer every n seconds)

2009-04-28 Thread Kris Geusebroek
Hi all, Found the solution to this and wanted to share that with you ;-) Everytime a new read was done on the layer through refreshing the refresh event triggered the update of the BBOX strategy. Here the abort was called on the protocol. In the protocol abort method the abort was propagat

[OpenLayers-Users] Using 'singletile: true' option, moved shape

2009-04-28 Thread Skymota
hi, i am drawing various shape layers with openlayers, if i draw the layer shapes with tiles (singletile: false) i have the problem that some icons on the shape layers are cut. The problem solves including the option "singletile: true", but naw i have another problem. When i enable one of this