[Users] Transparencyslider on rightclick

Dan Ramage dan at inlet.geol.sc.edu
Fri Oct 22 18:26:39 CEST 2010


I use a DataView(ExtJS) in the left panel(where the current observations
are) and handle the click event from it. I then lookup what observation was
clicked, go grab the time series out from my jsonstore for that obs and add
that series to the graph.  I've just started playing with the Highcharts
stuff the past couple of days. It's a cool little package, the wrapper for
ExtJS is still buggy but the guy continues to work on it. At first I was
thinking of using the Google visualization, but I don't like the fact you
can't host the javascript file yourself. 

 

What I wanted to do with this incarnation is make every buoy an object. They
are driven via a geoJSON file that I then take and create a
GeoExt.vectorStore out of.

 

I'm happy to share whatever I've done. 

 

Dan

 

  _____  

From: Ryan Williams [mailto:rwilliams at paqinteractive.com] 
Sent: Friday, October 22, 2010 11:08 AM
To: users at geoext.org; dan at inlet.geol.sc.edu
Subject: Re: [Users] Transparencyslider on rightclick

 

Hey Dan, nice map. looks like an interesting project. I really, really -
really-  like the way the buoy information works inside the popup window -
with the charts changing based on what you hover over. Is that all part of
the highcharts package or is that something you did custom? 
Nice.

Ryan

On 10/22/2010 9:21 AM, Dan Ramage wrote: 

Here: http://rcoos.org/carolinasrcoosrev2/secoora_interactive_tst.html is my
testing site.

The main javascript is here:
http://rcoos.org/carolinasrcoosrev2/lib/secoora_interactive_tst.js, but most
of the code dealing with the tree is here:

http://rcoos.org/carolinasrcoosrev2/lib/olMap1.0.js

 

 The slider is here:
http://rcoos.org/carolinasrcoosrev2/lib/GeoExt-1.0/lib/GeoExt/widgets/tree/L
ayerOpacitySliderPlugin.js

The mixin to make it work is here:
http://rcoos.org/carolinasrcoosrev2/lib/GeoExt-1.0/lib/GeoExt/widgets/tree/T
reeNodeUIEventMixinExtended.js

For my mixin, I basically just copied the base one, I couldn't seem to get
the Ext.extend() working and didn't want to spend a lot of time on that just
yet.

 

When I create my layers I have a couple of hash tags I add in the options
parameter to specify whether I want the slider or not.

In the olMap1.0.js, at the very top is my GeoExt.tree.layerLoaderExtended
where I make sure only the tree nodes that have the option set to have a
slider get them. If I didn't do this, every layer in that layercontainer
node would have a slider.

 

In the LayerOpacitySliderPlugin.js, the onRenderNode is where most of the
work gets done. I used the RadioButtonPlugin.js as a guide on how to go
about doing this. I used the Ext.Slider() widget.

 

This was a big learning experience for me, I am still not anywhere as
knowledgeable about javascript as I would like.

 

 

Dan

 

 

  _____  

From: Viggo Lunde [mailto:viggo.lunde at gmail.com] 
Sent: Friday, October 22, 2010 8:21 AM
To: Dan Ramage
Subject: Re: [Users] Transparencyslider on rightclick

 

Sure, do you have example-code or a description

Viggo 

2010/10/22 Dan Ramage <dan at inlet.geol.sc.edu>

I implement a slider in the layer tree. Not sure if that is helpful or not.

 

Dan

 

  _____  

From: users-bounces at geoext.org [mailto:users-bounces at geoext.org] On Behalf
Of Viggo Lunde
Sent: Friday, October 22, 2010 2:38 AM
To: users at geoext.org
Subject: [Users] Transparencyslider on rightclick

 

Hi

Nice, then we have the min/max scale. 

Is there anyone who implemented the transparencyslider on rightclick as
vell?

Looking forward to get rid of MapFish in the client.

 

Viggo Lunde

 

 

 
 
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
  





-- 
Ryan Williams, GISP
GIS Analyst / Programmer
PAQ Interactive Inc.
Monticello, IL 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20101022/21e557a7/attachment-0001.htm 


More information about the Users mailing list