Re: [OpenLayers-Users] layerswitcher position?

2010-07-29 Thread Adrian Popa
appeard to its default position! is it possible to set its position? regards, Imran -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099

Re: [OpenLayers-Users] Unable to Rollback changes on WFS update failure

2010-07-23 Thread Adrian Popa
. ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099

Re: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner

2010-07-19 Thread Adrian Popa
Any suggestions on how to move the layer switcher icon to be relative to the bottom of the map? On 07/16/2010 05:41 PM, Adrian Popa wrote: I studied CSS extensively the past two days, and I sort of managed to move it, but I still have two problems: 1. I can't position the layer-switcher

Re: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner

2010-07-19 Thread Adrian Popa
Found a fix for the right rounded corners. Here's a patch for LayerSwitcher.js Regards, Adrian --- LayerSwitcher.js 2010-07-19 10:24:26.0 +0300 +++ LayerSwitcherNew.js 2010-07-19 10:24:20.0 +0300 @@ -531,7 +531,7 @@ OpenLayers.Control.LayerSwitcher =

Re: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner

2010-07-16 Thread Adrian Popa
No ideas on this one? Is it difficult to implement or nobody has tried it until now? On 07/14/2010 02:20 PM, Adrian Popa wrote: Hello, I'm trying to move the layer switcher button from the top-right corner of the map to the bottom-left corner. I have done this before with 2.8, but I ended

Re: [OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner

2010-07-16 Thread Adrian Popa
I studied CSS extensively the past two days, and I sort of managed to move it, but I still have two problems: 1. I can't position the layer-switcher-maximize button if I want to add an offset measured from the bottom (bottom: 40px). I can only display it if I specify an offset from the top -

Re: [OpenLayers-Users] Doing something when the layer's features get deleted

2010-07-16 Thread Adrian Popa
refreshes... Thanks! On 07/15/2010 05:36 PM, Adrian Popa wrote: Hello everyone, I have a problem with popups and a vector layer - if I trigger a forced refresh on the vector layer while a popup for a feature is opening, the popup's div will freeze and I am unable to close it (most likely

[OpenLayers-Users] Doing something when the layer's features get deleted

2010-07-15 Thread Adrian Popa
Hello everyone, I have a problem with popups and a vector layer - if I trigger a forced refresh on the vector layer while a popup for a feature is opening, the popup's div will freeze and I am unable to close it (most likely because the feature it was bound to gets deleted by the time the

[OpenLayers-Users] Moving LayerSwitcher position from top-right corner to bottom-left corner

2010-07-14 Thread Adrian Popa
Hello, I'm trying to move the layer switcher button from the top-right corner of the map to the bottom-left corner. I have done this before with 2.8, but I ended up making changes in the openlayers API, but I can see now that 2.9.1 seems to have made changes in the LayerSwitcher's definition.

Re: [OpenLayers-Users] Getting server output when using save

2010-07-07 Thread Adrian Popa
Thank you Gabriel, I tried your suggestion, but I get an error saying that response.priv is null (and it exists, but is null when looking in firebug). Do I need to add something to the layer definition in order for this to work? Regards, Adrian On 07/07/2010 12:22 PM, Gabriel Nolasco wrote:

[OpenLayers-Users] Can't restrict Openlayers.Layer.OSM to use specific zoom levels

2010-07-07 Thread Adrian Popa
Hello, I have a map that uses just 12 zoom levels by defining numZoomLevels: 12 and an array of allowed resolutions. All base layers (Google, Yahoo and Mapserver) have a similar configuration (e.g. for Google: MIN_ZOOM_LEVEL: 7, MAX_ZOOM_LEVEL:19, RESOLUTIONS: res) and work as expected.

Re: [OpenLayers-Users] Can't restrict Openlayers.Layer.OSM to use specific zoom levels

2010-07-07 Thread Adrian Popa
Thanks for the answer Christopher, Are there any known workarounds for this (or planned enhancements), or should I give up this idea and move on? Regards, Adrian On 07/07/2010 04:13 PM, christopher.schm...@nokia.com wrote: On Jul 7, 2010, at 8:44 AM, ext Adrian Popa wrote: The tiles

Re: [OpenLayers-Users] Custom EditingToolbar displays the wrong button icon

2010-07-06 Thread Adrian Popa
? Regards, Adrian On 07/05/2010 03:27 PM, Adrian Popa wrote: Hello everyone, Long time no see :) I want to add a save button to my editingToolbar (which was customized) in order to manually save changes. I am using the following code: //overload the EditingToolbar initialize function

Re: [OpenLayers-Users] Custom EditingToolbar displays the wrong button icon

2010-07-06 Thread Adrian Popa
Update - I've upgraded from OpenLayers 2.8 to 2.9.1 and the issue is fixed. :) The toolbar looks fine now. Should have tried to update sooner... Regards, Adrian ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] Custom EditingToolbar displays the wrong button icon

2010-07-06 Thread Adrian Popa
is that the order of the two CSS sections is reversed. How can I reverse them back/fix this issue? Regards, Adrian On 07/06/2010 11:54 AM, Adrian Popa wrote: Update - I've upgraded from OpenLayers 2.8 to 2.9.1 and the issue is fixed. :) The toolbar looks fine now. Should have tried to update

[OpenLayers-Users] Getting server output when using save strategy

2010-07-06 Thread Adrian Popa
Hello everyone, I'm trying to create a callback function for the save strategy so that I can display a status message for the user in case there are problems with saving their changes (e.g. - session expired, etc). I want the serverside script to send back a JSON formatted string that would

[OpenLayers-Users] Custom EditingToolbar displays the wrong button icon

2010-07-05 Thread Adrian Popa
Hello everyone, Long time no see :) I want to add a save button to my editingToolbar (which was customized) in order to manually save changes. I am using the following code: //overload the EditingToolbar initialize function: OpenLayers.Control.EditingToolbar.prototype.initialize =

[OpenLayers-Users] on window size change - zoom the map instead of enlarging the extent

2009-12-02 Thread Adrian Popa
to the relevant documentation or an example is highly appreciated. Thanks, -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099 ___ Users

Re: [OpenLayers-Users] Advice about Google layer limitations

2009-11-29 Thread Adrian Popa
(without extra margins?). I would like to do this either for the Google Layer, or for all the layers - to reduce general load on the server. Thank you, Adrian Andreas Hocevar wrote: Adrian Popa wrote: I asked the same question on Google API forums, and it looks like the original Google API

Re: [OpenLayers-Users] Advice about Google layer limitations

2009-11-27 Thread Adrian Popa
if there is something that can be done from the OpenLayers side, or is this a known limitation. Is OpenLayers scraping images from Google, or is it using the API just like any other Google Maps client? Thank you, Adrian Adrian Popa wrote: Hello everybody, I would like to share with you my findings

[OpenLayers-Users] Advice about Google layer limitations

2009-11-26 Thread Adrian Popa
Hello everybody, I would like to share with you my findings about the usage of Google background on very large maps. I have to render a map with the screen resolution of about 4500x3100 (on a wall of screens). It works ok with WFS layers, OSM and even Microsoft Virtual Earth, but I have

Re: [OpenLayers-Users] [PartiallySolved] Forcing FramedCloud autoResize when using stylesheets

2009-11-25 Thread Adrian Popa
P.S. I'm not sure if this patch is really needed for mainstream OpenLayers - but it is needed when displaying a map on a wall of screens or on screens with a big resolution. Adrian Popa wrote: No ideas about this one? Adrian Popa wrote: I did some more digging and it seems the png image which

Re: [OpenLayers-Users] Forcing FramedCloud autoResize when using stylesheets

2009-11-15 Thread Adrian Popa
No ideas about this one? Adrian Popa wrote: I did some more digging and it seems the png image which has the elements (borders) of the framed cloud has rather small dimensions: # file cloud-popup-relative.png

Re: [OpenLayers-Users] Forcing FramedCloud autoResize when using stylesheets

2009-11-12 Thread Adrian Popa
(current behavior). Thanks, Adrian Adrian Popa wrote: Update: - it seems I was partially wrong. The div settings for the decoration divs are correct - but it seems the popup background image doesn't get any larger... I will look into it. Adrian Popa wrote: Hello everyone, I have done some

Re: [OpenLayers-Users] Forcing FramedCloud autoResize when using stylesheets

2009-11-11 Thread Adrian Popa
Update: - it seems I was partially wrong. The div settings for the decoration divs are correct - but it seems the popup background image doesn't get any larger... I will look into it. Adrian Popa wrote: Hello everyone, I have done some more digging, and it seems the FramedCloud popup has

[OpenLayers-Users] Forcing FramedCloud autoResize when using stylesheets

2009-11-10 Thread Adrian Popa
Hello everyone, If this subject has been discussed before, please point me to the relevant thread. I have a FramedCloud popup which gets its content through an ajax call. Everything works ok (the popup is the same size as the content) if I don't change the size of the fonts in the popup. In

[OpenLayers-Users] What image types are supported as icons served through KML?

2009-11-09 Thread Adrian Popa
Hello everyone, I just want to know - what image types are supported to be imported through KML? I would like to convert my icons from PNG to SVG (which looks better when scaled) - but I'm not sure if it will work. Is the limitation based only on browser type (and what it can render)? Or are

Re: [OpenLayers-Users] What image types are supported as icons served through KML?

2009-11-09 Thread Adrian Popa
Schmidt wrote: On Mon, Nov 09, 2009 at 04:26:30PM +0200, Adrian Popa wrote: Hello everyone, I just want to know - what image types are supported to be imported through KML? I would like to convert my icons from PNG to SVG (which looks better when scaled) - but I'm not sure if it will work

Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-04 Thread Adrian Popa
- but I guess I will see when it's ready... How does my plan sound like? Regards, Adrian Roald de Wit wrote: Hi Adrian, Adrian Popa wrote: Thank you for the hint. I suppose I shouldn't expect to see a working demo of what I need :) Do you know if the patches presented in ticket 1259 are already

Re: [OpenLayers-Users] Highlighting changes in the KML layer

2009-11-03 Thread Adrian Popa
for the rule, and add the rule to the style object }}} helmi03.com http://helmi03.com On Tue, Nov 3, 2009 at 12:59 AM, Adrian Popa adrian_gh.p...@romtelecom.ro mailto:adrian_gh.p...@romtelecom.ro wrote: Hello everyone, Sorry if this has already been discussed on the list (didn't really

Re: [OpenLayers-Users] Optimal tile size for tilecache

2009-10-22 Thread Adrian Popa
faster... Thanks, Adrian Christopher Schmidt wrote: On Mon, Oct 19, 2009 at 02:30:44PM +0300, Adrian Popa wrote: Hello everyone, Just wondering - what would be a good tile size to be used for tilecache, so that the client will not do a lot of queries to the server (seems they take quite

Re: [OpenLayers-Users] Optimal tile size for tilecache

2009-10-22 Thread Adrian Popa
+0300, Adrian Popa wrote: Hello Christopher, Thanks for your reply. I am using cgi mode (because it's been the easiest to setup). How do you recommend I run tilecache? I don't want to precache my whole map because most of the zoom levels (in some areas) don't give much information. I

Re: [OpenLayers-Users] Optimal tile size for tilecache

2009-10-22 Thread Adrian Popa
, tilecache.fcgi...) and it will work. See http://openlayers.org/pipermail/tilecache/2007-December/000661.html for details. Thanks, Adrian Christopher Schmidt wrote: On Tue, Oct 20, 2009 at 04:25:01PM +0300, Adrian Popa wrote: Thank you, I'll try with mod_python. Another small question

[OpenLayers-Users] Any performance difference between Layer.Mapserver and Layer.WMS?

2009-10-22 Thread Adrian Popa
Hello, Just wondering if it pays out to migrate my legacy Mapserver layers to WMS layers. Is there a speed/security benefit in doing so? Or is it just recommended because WMS is a standard? Does Mapserver itself have better performance in WMS mode compared to its cgi mode? To me, it seems

[OpenLayers-Users] Using tilecache.cgi with Layer.TileCache

2009-10-15 Thread Adrian Popa
Hello everyone, I'm trying to get tilecache and openlayers to work together, but I've just looked over the API for Layer.TileCache and in the constructor it seems it will not work with tilecache.cgi, but it works instead with the images generated by tilecache. url{String} Location of the web

Re: [OpenLayers-Users] Using tilecache.cgi with Layer.TileCache

2009-10-15 Thread Adrian Popa
Thank you. I wasn't sure if it had a WMS interface. I will give it a try... Christopher Schmidt wrote: On Thu, Oct 15, 2009 at 01:46:33PM +0300, Adrian Popa wrote: Hello everyone, I'm trying to get tilecache and openlayers to work together, but I've just looked over the API

[OpenLayers-Users] Finding out available resolutions for tilecache

2009-10-15 Thread Adrian Popa
Hello everyone, I'm trying to convert my WMS layer to use tilecache in the backend and I have stumbled over this problem which I can't solve yet: Here is my request:

Re: [OpenLayers-Users] Finding out available resolutions for tilecache

2009-10-15 Thread Adrian Popa
++) { resolutions.push(map.getResolutionForZoom(i)); } console.log(resolutions.join(',')); I hope this will help you. On Thu, Oct 15, 2009 at 2:47 PM, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello everyone, I'm trying to convert my WMS layer to use tilecache in the backend and I have stumbled

Re: [OpenLayers-Users] Need help with memory leak in IE

2009-09-03 Thread Adrian Popa
___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099

Re: [OpenLayers-Users] keep map displayed when loading on zoom

2009-09-03 Thread Adrian Popa
Thanks for clearing that for me :) Christopher Schmidt wrote: On Thu, Sep 03, 2009 at 11:34:23AM +0300, Adrian Popa wrote: Thanks Andreas, I've tested it on Mapserver layers, and it works great! However, I tried to add it to: - OpenStreetMaps (OpenLayers.Layer.OSM.Osmarender), - Google

Re: [OpenLayers-Users] keep map displayed when loading on zoom

2009-09-02 Thread Adrian Popa
a look at http://www.openlayers.org/dev/examples/transition.html Regards, Andreas. -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400 3099

Re: [OpenLayers-Users] help with popup-properties

2009-08-20 Thread Adrian Popa
Hello Maren, For your first question try this: ... feature.popup = popup; *popup.keepInMap = true; *map.addPopup(popup); Regards, Adrian Maren Kiehl wrote: Hi everyone, I have a problem with the popup in my map: When I click a point a popup with some informations is shown. The problem is

Re: [OpenLayers-Users] Starting function if layerstatus is changed

2009-08-14 Thread Adrian Popa
); } and if (my_layer.display()){ alert (here we go); } ...but so far without success. Can anybody help please? Thank you very much, Kai -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400

Re: [OpenLayers-Users] Starting function if layerstatus is changed

2009-08-14 Thread Adrian Popa
(change); alert (my_layer.visibility); } of If this.map.events.triggerEvent(visibilitychanged)) { ... } Well, I will try on. Best regards, Kai Original-Nachricht Datum: Fri, 14 Aug 2009 15:37:30 +0300 Von: Adrian Popa adrian_gh.p...@romtelecom.ro An: Kai

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click. [SOLVED]

2009-08-13 Thread Adrian Popa
after a popup is how 2009/8/5 Adrian Popa adrian_gh.p...@romtelecom.ro mailto:adrian_gh.p...@romtelecom.ro Following Alexandre's suggestion, here's what I did: ... //in init() map.addLayer(markers); //add the main select (for regular popups) select = new

[OpenLayers-Users] What is the relationship between zoom level and longitude/latitude

2009-08-07 Thread Adrian Popa
- or should I determine it empirically. Thank you. By the way, my map is using spherical mercator projection, but my coordinates are in longitude/latitude (although there is no problem in converting them...). -- --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare

Re: [OpenLayers-Users] What is the relationship between zoom level and longitude/latitude

2009-08-07 Thread Adrian Popa
, GEOGRAF A/S Adrian Popa skrev: Hello everybody. I'm trying to zoom to view an area for which I have the minimum and maximum longitude/latitude. Basically I would like to zoom in to see a rectangle with known coordinates. I already calculated the center of this rectangle - so that's

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click. [SOLVED]

2009-08-05 Thread Adrian Popa
kinds of highlight events (see the source) to display your small div/popup. Hope this helps, Alexandre (1) http://openlayers.org/dev/examples/highlight-feature.html Adrian Popa wrote: Hello everyone, This is sort of a repeat message of Re: [OpenLayers-Users] Labels/Tooltips on mouse

[OpenLayers-Users] Using a more readable OpenLayers.js

2009-08-04 Thread Adrian Popa
Hello, I'm running into a problem where firebug says element doesn't exist somewhere in OpenLayers code. I'm having trouble debugging this issue, because my Openlayers code is pretty compact. What should I include in to have OpenLayers with a more readable code? Is there an intermediary file

Re: [OpenLayers-Users] Using a more readable OpenLayers.js

2009-08-04 Thread Adrian Popa
, Marc Adrian Popa schrieb: Hello, I'm running into a problem where firebug says element doesn't exist somewhere in OpenLayers code. I'm having trouble debugging this issue, because my Openlayers code is pretty compact. What should I include in to have OpenLayers with a more readable code

Re: [OpenLayers-Users] Using a more readable OpenLayers.js

2009-08-04 Thread Adrian Popa
load lots of uncompressed/non-minimized js-files. Regards, Marc Adrian Popa schrieb: Hello, I'm running into a problem where firebug says element doesn't exist somewhere in OpenLayers code. I'm having trouble debugging this issue, because my Openlayers code is pretty compact. What

Re: [OpenLayers-Users] Using a more readable OpenLayers.js

2009-08-04 Thread Adrian Popa
it's a firebug issue... Thanks anyway for the help - I managed to track down the problem the hard way... Regards, Adrian Usually this works just fine. Regards, Marc Adrian Popa schrieb: Hello Marc, I spoke too soon. If I use that file, I get ~34 errors in Firebug all complaining

[OpenLayers-Users] element is null error in Openlayers

2009-08-04 Thread Adrian Popa
Hello everyone, I've had a hard time trying to debug a problem on a Vector layer that had tooltips as well as regular popups. It worked fine but from time to time Firebug would log an error message like the following: element is null

Re: [OpenLayers-Users] since I'm a little dense...

2009-08-03 Thread Adrian Popa
Hello, I had a similar task - of showing dynamic POIs and I chose to implement it like this: - a Vector layer with KML data. - the path to the KML file is actually a path to a serverside script wich generates KMLs. - on searchbox submit a javascript creates new parameters for the serverside

Re: [OpenLayers-Users] since I'm a little dense...

2009-08-03 Thread Adrian Popa
that re-writes a gml file on the server, and reloading the pages on submit, thus changing the static resource but your way sounds more elegant Nicholas Efremov-Kendall (917) 399-6939 Sent from my mobile device On Aug 3, 2009, at 9:50 AM, Adrian Popa adrian_gh.p...@romtelecom.ro

Re: [OpenLayers-Users] Overriding some default CSS values

2009-08-03 Thread Adrian Popa
(tested) to set the opacity of one popup you could use: popup.setOpacity(0.7); (tested) If you generally want to have another opacity issue: OpenLayers.Popup.FramedCloud.prototype.opacity = 0.1; (untested!) before you instantiate your popups. Regards, Marc Adrian Popa schrieb: Hello

Re: [OpenLayers-Users] Displaying a popup on mouse over AND a different popup on click.

2009-08-03 Thread Adrian Popa
. The first one won't actually select the feature and you can register 3 kinds of highlight events (see the source) to display your small div/popup. Hope this helps, Alexandre (1) http://openlayers.org/dev/examples/highlight-feature.html Adrian Popa wrote: Hello everyone, This is sort

Re: [OpenLayers-Users] Flickering while updating overlay

2009-07-23 Thread Adrian Popa
Hi, I'm also interested in stopping the flickering - or keeping the old markers until the new ones have been loaded. Also, I would like this for my Mapserver layers - the images dissapear as soon as panning stops and reappear when reloaded. It would be nice to keep what image is still relevant

Re: [OpenLayers-Users] Labels/Tooltips on mouse over a Vector layer

2009-07-17 Thread Adrian Popa
: function(e) { onFeatureUnselect(e.feature); } }); Regards Sajeer On Thu, Jul 16, 2009 at 3:49 PM, Adrian Popa adrian_gh.p...@romtelecom.ro mailto:adrian_gh.p...@romtelecom.ro wrote: Thank you Sajeer, To make it clear for me: you would register the featureselected event

Re: [OpenLayers-Users] Displaying layers depending on the zoom

2009-07-16 Thread Adrian Popa
Hello Arthur, You can use minResolution and maxResolution for your layer. I see that your example already has that. Your layer should be grayed out outside the min-max resolution range and should become selectable (and visible) inside that range. You should tune your range by using firebug and

[OpenLayers-Users] Labels/Tooltips on mouse over a Vector layer

2009-07-16 Thread Adrian Popa
on every mouse move you would have to go through all the KML items and see which match... What are your ideas regarding this subject? --- Adrian Popa NOC Division Network Engineer Divizia Centrul National de Operare Retea Departament Transport IP Metro Compartiment IP Core Backbone Phone: +40 21 400

[OpenLayers-Users] Overriding overlay select to force a reload of the toggled layer

2009-07-15 Thread Adrian Popa
Hi everybody, I have several overlay vector layers that get their data in KML format from some server-side scripts. The data is highly dynamic, so it needs to be refreshed constantly (this is solved). The problem appears if only one overlay layer is selected (visible), I need to refresh all

Re: [OpenLayers-Users] Overriding overlay select to force a reload of the toggled layer

2009-07-15 Thread Adrian Popa
Any ideas with this problem? Anyone? Adrian Popa wrote: Hi everybody, I have several overlay vector layers that get their data in KML format from some server-side scripts. The data is highly dynamic, so it needs to be refreshed constantly (this is solved). The problem appears if only one

Re: [OpenLayers-Users] Vector layer popup doesn't close after layer refresh

2009-07-14 Thread Adrian Popa
? Or if that's not possible - how can I find a marker (in the markers.features array) which has my coordinates without going through the whole array? Thanks, Adrian Adrian Popa wrote: Hi everyone, I'd like your help with a javascript problem. I want to draw markers from a script that generates

[OpenLayers-Users] Setting max/min zoom levels for the whole map

2009-07-13 Thread Adrian Popa
Hello everybody, Is it possible to set max/min zoom for all layers at the map level? Or do I have to set the max/min zoom for each base layer? The map documentation suggests it isn't possible, but I thought of asking anyway... Thanks, Adrian ___

[OpenLayers-Users] Vector layer popup doesn't close after layer refresh

2009-07-13 Thread Adrian Popa
Hi everyone, I'd like your help with a javascript problem. I want to draw markers from a script that generates KML output and I have follows the sundials example: http://openlayers.org/dev/examples/sundials-spherical-mercator.html However, if I want to refresh the KML layer and I have an open

Re: [OpenLayers-Users] Setting max/min zoom levels for the whole map

2009-07-13 Thread Adrian Popa
Thanks Eric, I'll try that... Eric Lemoine wrote: On Monday, July 13, 2009, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello everybody, Is it possible to set max/min zoom for all layers at the map level? Or do I have to set the max/min zoom for each base layer? The map documentation

Re: [OpenLayers-Users] WFS selection layer deformed

2009-07-13 Thread Adrian Popa
Hi Peter, It seems you're trying to use google maps as base layer with your data overlaid on top. The problem is google maps uses spherical mercator projection, while your layer (and map) uses EPSG:4326. To get the layers to overlap, you need to use the same projection everywhere - try

Re: [OpenLayers-Users] kml refresh issue

2009-07-12 Thread Adrian Popa
One way to force KML to be refreshed is to add something dynamic to your query. For instance - a random number as an argument to the server-side KML generator. A different way might be calling layer.refresh({force: true}); - but this might cause your page to do the query twice. It dependes on

Re: [OpenLayers-Users] Overriding url for Vector layer

2009-07-08 Thread Adrian Popa
? Regards, Adrian Andreas Hocevar wrote: Hi, Adrian Popa wrote: I'm trying to display a vector layer (feed data as KML) and I'm trying to dynamically set some variables that are sent server-side for processing. The layer definition is the following: locations = new OpenLayers.Layer.Vector(Alarm

Re: [OpenLayers-Users] Overriding url for Vector layer

2009-07-08 Thread Adrian Popa
. Any other ideas? Regards, Adrian Andreas Hocevar wrote: Hi, Adrian Popa wrote: I'm trying to display a vector layer (feed data as KML) and I'm trying to dynamically set some variables that are sent server-side for processing. The layer definition is the following: locations = new

Re: [OpenLayers-Users] Overriding url for Vector layer

2009-07-08 Thread Adrian Popa
Hello Eric, Your solution worked great! It's much better than what I managed to hack. Thank you! Eric Lemoine wrote: On Wednesday, July 8, 2009, Adrian Popa adrian_gh.p...@romtelecom.ro wrote: Hello Andreas, I've tried your solution, but unfortunately it doesn't send the additional

[OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Adrian Popa
Hello everyone, I'm using a Vector layer with a BBOX strategy and gets dynamic data from a KML file and it works as expected. However, the data I'm displaying is kind of dynamic (alarms which come and go) and I would like to automatically refresh the layer (without doing a page reload) from

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Adrian Popa
Thank you very much Roald - it did the trick :) Roald de Wit wrote: Hi Adrian, With the new vector behaviour, layer refreshing is a bit different. This should work for you: locations.refresh({force: true}); Regards, Roald Adrian Popa wrote: Hello everyone, I'm using a Vector layer

Re: [OpenLayers-Users] Forcing a redraw of a Vector Layer

2009-07-07 Thread Adrian Popa
to measure the memory usage I will save some time today to create the ticket and provide a clean patch for this issue Cheers Kris -Original Message- From: Roald de Wit [mailto:roald.de...@lisasoft.com] Sent: Tuesday, July 07, 2009 9:27 AM To: Kris Geusebroek Cc: Adrian Popa; users

[OpenLayers-Users] Overriding url for Vector layer

2009-07-07 Thread Adrian Popa
Hi again, I'm trying to display a vector layer (feed data as KML) and I'm trying to dynamically set some variables that are sent server-side for processing. The layer definition is the following: locations = new OpenLayers.Layer.Vector(Alarm Locations, { projection:

Re: [OpenLayers-Users] Overriding url for Vector layer

2009-07-07 Thread Adrian Popa
Thanks Andreas... Unfortunately I already put a lot of effort to generate a string to append to my url, but I will try to generate json type of data instead... Thanks. Andreas Hocevar wrote: Hi, Adrian Popa wrote: I'm trying to display a vector layer (feed data as KML) and I'm trying

Re: [OpenLayers-Users] Vector layer with dinamic data

2009-07-01 Thread Adrian Popa
Hello Andreas, Thank you very much - that did the trick! :) Andreas Hocevar wrote: Adrian Popa wrote: Hello, I'm trying to accomplish the same thing and I followed your advice - using vector + BBOX, but I hit a snag - because my POI layer has a lot of elements, I would like to enable

Re: [OpenLayers-Users] Vector layer with dinamic data

2009-06-30 Thread Adrian Popa
Hello, I'm trying to accomplish the same thing and I followed your advice - using vector + BBOX, but I hit a snag - because my POI layer has a lot of elements, I would like to enable this layer only for a certain zoom level (when the user is really close). Is there some standard

[OpenLayers-Users] How to add an overlay to the map, but not select it by default

2009-06-26 Thread Adrian Popa
Hello everyone, I'm trying to add several overlay layers (from mapserver) to an openlayers map. Everything works as expected, but when the map loads, all the overlay layers are selected. I would like to have the ability (programmatically) to select which layers are selected by default. Here's

Re: [OpenLayers-Users] How to add an overlay to the map, but not select it by default

2009-06-26 Thread Adrian Popa
To answer my own question - apparently setting the visibility property on the layer does the trick: rtc.visibility = false Thanks anyway :) Adrian Popa wrote: Hello everyone, I'm trying to add several overlay layers (from mapserver) to an openlayers map. Everything works as expected

Re: [OpenLayers-Users] How to add an overlay to the map, but not select it by default

2009-06-26 Thread Adrian Popa
Thanks! This is a cleaner way to do it :) Alexandre Dube wrote: Hi, Adrian Popa wrote: Hello everyone, I'm trying to add several overlay layers (from mapserver) to an openlayers map. Everything works as expected, but when the map loads, all the overlay layers are selected. I would like

Re: [OpenLayers-Users] How to add an overlay to the map, but not select it by default

2009-06-26 Thread Adrian Popa
' or (MapServer) layers:'mylayer1 mylayer2 mylayer3' Just some hints, Regards, Alexandre Adrian Popa wrote: Thanks! This is a cleaner way to do it :) Alexandre Dube wrote: Hi, Adrian Popa wrote: Hello everyone, I'm trying to add several overlay layers (from mapserver

Re: [OpenLayers-Users] OpenLayers site it's down?

2009-06-26 Thread Adrian Popa
Yes, I experienced very high load times a few minutes ago... http://downforeveryoneorjustme.com/openlayers.org It's not just you! http://openlayers.org looks down from here. David Martinez Morata wrote: Hello I try to conect to OpenLayers site but I have an error message, it's the website

Re: [OpenLayers-Users] Register an event with a marker

2009-06-21 Thread Adrian Popa
Hello Andreas, Thanks for your help - I will look into it. I thought the Sundials example was too tied to KML files, so this is why I didn't chose to follow it. I will continue this thread if I run into unsolvable problems. Regards, Adrian Andreas Hocevar wrote: Hi, On Fri, Jun 19, 2009

[OpenLayers-Users] Integration with wikimapia

2009-06-19 Thread Adrian Popa
Hello everyone, I've just switched my web interface to openlayers and I am impressed of what it can do! Good job to the developers and the community. I wanted to ask if it has been previously discussed/planned an integration (or even if it's possible) with Wikimapia (www.wikimapia.org)? It

[OpenLayers-Users] Register an event with a marker

2009-06-19 Thread Adrian Popa
Hello everyone, Here's what I'm trying to do (let me know if I'm reinventing the wheel): I want to load a bunch of markers onto an existing map, and I want to register a function to react to a click event. The function will create a popup and get some content through an ajax call to display on