[OpenLayers-Users] Switch to google layer set diff center then at other layers

2008-09-03 Thread Mikesamar
Hello forum members, I've a problem with google maps layers when integrated with other layer. If I switch between a layer to a google layer then the map gets a new center and my markers are out of the view. If I switch to a non google maps marker then the center is allright again and the icons

Re: [OpenLayers-Users] Putting map-div in a table won't work

2008-09-03 Thread Kenneth Johnsen
Ah! That was the problem. Thank you very much. Regards, Kenneth. 2008/9/2 Andrew de Klerk [EMAIL PROTECTED] Does your map div have a style with width and height set? - i.e. #map{ width:500px; height:500px; border:1px solid; } Other than that, I We have placed ours in a table

[OpenLayers-Users] permalink on dynamic pages?

2008-09-03 Thread mc.prins
Hi all, I'm working on a Dokuwiki[1] plugin that enables use of OL on the Dokuwiki pages[2]. it seems however that the permalink isn't updated when there's a questionmark in the URL... does anyone share that experience. I've ran into this at work but at the time just couldn't be bothered and

Re: [OpenLayers-Users] Switch to google layer set diff center then at other layers

2008-09-03 Thread Christopher Schmidt
On Wed, Sep 03, 2008 at 12:51:35AM -0700, Mikesamar wrote: Hello forum members, I've a problem with google maps layers when integrated with other layer. If I switch between a layer to a google layer then the map gets a new center and my markers are out of the view. If I switch to a non

[OpenLayers-Users] Vector features don't display at level 0

2008-09-03 Thread Alexandre Dube
Hi everybody, I have a WFS layer that displays features on different zoom levels. When I initialize the zoom level to anything but 0, features are displayed. If I then go back to level 0, features are displayed. But, when I start at level 0, features are not displayed. I then zoom to

Re: [OpenLayers-Users] permalink on dynamic pages?

2008-09-03 Thread Christopher Schmidt
On Wed, Sep 03, 2008 at 02:45:25PM +0200, mc.prins wrote: $mapid gets replaced serverside by the id attribute of the olmap tag shown above. the create map function does: m.addControl(new OpenLayers.Control.Permalink( { 'div' :OpenLayers.Util.getElement(mapOpts.id +

[OpenLayers-Users] Snap Marker to Polyline / Import timestamps from GPX

2008-09-03 Thread otternase
Hello I have a problem which is somewhat complex and being new to OpenLayers I don't really know how to start... The task is this: 1) init: - loading a trace from a GPX File (incl. timestamps) - showing this trace as a polyline on a map - adding a marker at the starting point of the trace 2)

[OpenLayers-Users] kml example

2008-09-03 Thread Jeremy Jackson
Hi everyone, I'm new to the openlayers emailing list. Just wanted to introduce myself. I have a question about the kml sundials examplehttp://openlayers.org/dev/examples/kml-layer.html. In line 43 of the code, you get what I've copied below: map.addLayer(new OpenLayers.Layer.GML(KML,

Re: [OpenLayers-Users] kml example

2008-09-03 Thread Christopher Schmidt
On Wed, Sep 03, 2008 at 09:38:55AM -0400, Jeremy Jackson wrote: Hi everyone, I'm new to the openlayers emailing list. Just wanted to introduce myself. I have a question about the kml sundials examplehttp://openlayers.org/dev/examples/kml-layer.html. In line 43 of the code, you get what

Re: [OpenLayers-Users] Switch to google layer set diff center then at other layers

2008-09-03 Thread Mikesamar
Hello Christopher Thank you very much for the information. I've found that it's solved in a specific file (lib\OpenLayers\Layer\google.js). So you don't have use all SVN-version of openlayers. I'll test it and let you all know. Regards Mike -- View this message in context:

Re: [OpenLayers-Users] Switch to google layer set diff center then at other layers

2008-09-03 Thread Mikesamar
I've tested it on it works allmost. First time a google layer is selected then it still centers wrong. Selecting a other google layer the markers are back in view and is the center allright. But the first layer stays wrong! I only replaced the google.js file. Regards Mike -- View this

Re: [OpenLayers-Users] Vector layer rendering with maxResolution: 'auto'

2008-09-03 Thread Arnaud Morvan
I have to set manually the resolutions and maxExtent for each layer I have no more problem with vector rendering map = new OpenLayers.Map('map'); var units = m; var scales = [10, 5, 25000, 1, 5000, 2500, 1000, 500]; var resolutions = new Array(scales.length); for

Re: [OpenLayers-Users] Vector features don't display at level 0

2008-09-03 Thread Eric Lemoine
Hi Alexandre. This is a fun issue :) Do you use OpenLayers trunk? Eric 2008/9/3, Alexandre Dube [EMAIL PROTECTED]: Hi everybody, I have a WFS layer that displays features on different zoom levels. When I initialize the zoom level to anything but 0, features are displayed. If I then go

[OpenLayers-Users] events.register only fires once?

2008-09-03 Thread slyon
Hi, I've set up an events.register(changebaselayer, this.map, myFunction())... and when the map first loads the event fires and myFunction is executed. However, anytime thereafter that I change base layers the event doesn't fire. I can not figure out why; can anyone advise? Thank you, Skylar

[OpenLayers-Users] Controls not on top

2008-09-03 Thread Greg Ederer
Hi, I have a map with a couple of layers, and a number of controls. The controls do not appear on the top layer. What is the best way to guarantee that the controls are always on the top layer? Thanks! Greg -- | E R G O N O S I S | Greg Ederer | Lead Developer | [EMAIL PROTECTED] |

[OpenLayers-Users] Zoom to a Layer's Extent

2008-09-03 Thread Bill Thoen
I want to zoom a map to the extent of a layer (called baseLayer) but when I try: map.zoomToExtent(baseLayer.getDataExtent()); the baseLayer.getDataExtent() function returns null. When I don't include this line everything works fine (the layer appears normally, only without the zoom that I

Re: [OpenLayers-Users] Markers on Google move around N/S

2008-09-03 Thread Matt Williamson
Ok, So I'm trying to do all this with sphericalMercator on...now, if I start my map with a EPSG:4326 layer, and then switch to a Google EPSG: 900913 layer (using the layer switcher), my GML layer doesn't automatically transform itself...fine, but what's the correct way to make it do so? Or

Re: [OpenLayers-Users] events.register only fires once?

2008-09-03 Thread Van Ulden, Joost
Hi Skylar, Have tried something like: // bind event OpenLayers.Event.observe(this.map, changebaselayer, OpenLayers.Function.bindAsEventListener(myFunction()) ); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of slyon Sent: September 3, 2008 10:04

Re: [OpenLayers-Users] events.register only fires once?

2008-09-03 Thread slyon
Yes, I just tested that out and it worked fine - thanks! I also just figured out what I was doing incorrectly. The function that I was trying to call (myFunction()) needed to take the event parameter... so, myFunction(event) fixed my problem. Thanks all, Skylar -- View this message in context:

Re: [OpenLayers-Users] Vector features don't display at level 0

2008-09-03 Thread Alexandre Dube
Hi Eric, I had never actually used the trunk up to now. I've just tried it and it works fine, but I have other bugs that appeared ( but I'll try to fix them before complaining :) ... ) Anyway, should I use the trunk instead of my own OL I downloaded ? Or should I wait for the 2.7