Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-06 Thread Bjorn Sandvik
Thank you! The circles are now scaling properly on each zoom level: http://thematicmapping.org/experiments/openlayers/propsymbols_stylemap.html How can I adjust the hover effect (keep the same size)? Bjorn Andreas Hocevar wrote: > Bjorn, > > your requirement is covered by the new OpenLayers.St

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-06 Thread Arnd Wippermann
8 19:25 An: Bjorn Sandvik Cc: users@openlayers.org Betreff: Re: [OpenLayers-Users] Proportional Symbol Mapping Bjorn, your requirement is covered by the new OpenLayers.StyleMap. First of all, have a look at the styles-context example (http://www.openlayers.org/dev/examples/styles-context.html).

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-06 Thread Christopher Schmidt
On Sun, Apr 06, 2008 at 07:28:17PM +0200, Andreas Hocevar wrote: > Christopher Schmidt wrote: > Well, the wiki page will have to be changed once it is decided how to > continue with the rules/filters issue. In this case, though, there are no rules or filters to worry about; I'm just not knowledga

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-06 Thread Eric Lemoine
On Sun, Apr 6, 2008 at 7:24 PM, Andreas Hocevar <[EMAIL PROTECTED]> wrote: > Bjorn, > > your requirement is covered by the new OpenLayers.StyleMap. > > First of all, have a look at the styles-context example > (http://www.openlayers.org/dev/examples/styles-context.html). The second > example th

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-06 Thread Andreas Hocevar
Christopher Schmidt wrote: > On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote: > >> On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik <[EMAIL PROTECTED]> wrote: >> >>> My question: Is there a way to keep the relative size of the symbols >>> when the users zoom in/out? >>>

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-06 Thread Andreas Hocevar
Bjorn, your requirement is covered by the new OpenLayers.StyleMap. First of all, have a look at the styles-context example (http://www.openlayers.org/dev/examples/styles-context.html). The second example there (the points in the southern hemisphere) are created with an advanced template. The s

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-05 Thread Arnd Wippermann
//something went wrong > } > > function serialize() { > //code > var Msg = vectors.selectedFeatures[0].attributes["name"] + " > : "; > Msg+= > vectors.selectedFeatures[0].attri

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-05 Thread Bjorn Sandvik
Correct url: http://thematicmapping.org/experiments/openlayers/propsymbols.html (Event handler not working) Bjorn Bjorn Sandvik wrote: > Hi Matt, > > I'm currently implementing your suggestions. I'm able to size the > symbols as a function of the initial zoom level, but I can't figure out > how

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-05 Thread Bjorn Sandvik
ature); >> >> } >> vectors.renderer.clear(); >> vectors.moveTo(null, true); // Error in IE >> >> features = null; >> >> } >> } >> >> function

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-05 Thread Bjorn Sandvik
Hi David, I will consider thematic mapping with WMS at a later stage. "European Interactive Atlas Explorer" is a good example: http://karlinapp.ethz.ch/wms_client/ The disadvantage is lack of interactivity on the client. Bjorn http://blog.thematicmapping.org David Fawcett wrote: > I can th

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-05 Thread Bjorn Sandvik
> } > > function serialize() { > //code > var Msg = vectors.selectedFeatures[0].attributes["name"] + " > : "; > Msg+= > vectors.selectedFeatures[0].attributes["population"] + &qu

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-05 Thread Bjorn Sandvik
Hi Matt, I'm currently implementing your suggestions. I'm able to size the symbols as a function of the initial zoom level, but I can't figure out how to attach an event handler to the endzoom event. How can I add an event handler which makes a function call? http://localhost/thematicmapping/e

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-04 Thread mpriour
Bjorn The correct way to handle this is to attach an event handler to the endzoom event. This event should manage the size of the symbols so that they are propotionally sized. Choose the zoom level at which the symbol renders at the right proportion, this will be your refernece zoom level. Then si

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-04 Thread David Fawcett
I can think of another option, but it is a fairly big change of course. Instead of sending RSS to OpenLayers and building the vector features, you could use MapServer to create a transparent WMS layer with your features in it. That way, you could use LAYER SYMBOLSCALE to scale your symbols. Davi

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-04 Thread Christopher Schmidt
On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote: > On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik <[EMAIL PROTECTED]> wrote: > > My question: Is there a way to keep the relative size of the symbols > > when the users zoom in/out? > > AFAICT there's no way to style features based on

Re: [OpenLayers-Users] Proportional Symbol Mapping

2008-04-04 Thread Eric Lemoine
On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik <[EMAIL PROTECTED]> wrote: > Hi, > > I'm currently testing the capabilities of doing thematic mapping with > OpenLayers. > > This is a proportional symbol map based on GeoJSON encoded data: > http://thematicmapping.org/experiments/openlayers_propsy

[OpenLayers-Users] Proportional Symbol Mapping

2008-04-03 Thread Bjorn Sandvik
Hi, I'm currently testing the capabilities of doing thematic mapping with OpenLayers. This is a proportional symbol map based on GeoJSON encoded data: http://thematicmapping.org/experiments/openlayers_propsymb.htm My question: Is there a way to keep the relative size of the symbols when the us