[Chameleon] Pan Map problems

Jason Grimes jgrimes at gi.alaska.edu
Tue Dec 7 14:01:23 EST 2004


Thanks Paul for keeping me in the loop.  :)  I haven't been looking in
to it much, so many other things that need to be done.  I did a quick
test to see is there are any more error messages in the Javascript
console.  I'm still getting the same one, although it is being generated
by a different js script this time.

Error: oLayer has no properties
Source File:
https://phobos.gina.alaska.edu/chameleon//widgets/js/cwc_dhtml.js
Line: 437

This is in the CWCDHTML_SetLayerVis function, so it looks like I have
some errant code that I need to fix.  As soon as I get the site in a
state that can be demoed then I can spend some time looking into this. 
Thank you again,

Jason

On Tue, 2004-12-07 at 06:41, Paul Spencer wrote:
> Jason,
> 
> if you are still getting this error, check sample.js on the line of the 
> error and see what function is getting called ... then remove the calls 
> to that function.
> 
> Cheers,
> 
> Paul
> 
> Jason Grimes wrote:
> > I did a grep on all of my files, but the only place the function showed
> > up in is sample.js.   I commented out the code, but it didn't fix the
> > behavior.  Thank you again.
> > 
> > Jason
> > 
> > On Thu, 2004-12-02 at 10:34, Paul Spencer wrote:
> > 
> >>Jason, please remove any calls to LayerSetSizeInit in your template. 
> >>The code in the sample apps is not very stable when it comes to changing 
> >>stuff, particularly with the tab code and the layout resizing stuff. 
> >>I'm thinking about fixing it up, but I never intended it to be 
> >>particularly reusable/flexible ... it was just to showcase the widgets :s
> >>
> >>Cheers,
> >>
> >>Paul
> >>
> >>Jason Grimes wrote:
> >>
> >>>Hi Paul,
> >>>
> >>>Thank you for responding.  There are no errors in the Apache error log
> >>>or in the Chameleon error report.  The only error I'm getting is one in
> >>>the JavaScript console:
> >>>
> >>>Error:  oLayer has no properties.
> >>>Source File: sample.js        Line: 86
> >>>
> >>>Which I think is because I'm not using all of the widgets that the
> >>>sample.js file supports, so one of them is complaining. 
> >>>
> >>>One other thing to add with the PanMap widget is that if I drag the
> >>>mouse very slowly, the map image will either snap to the top of the
> >>>browser window or to the left edge, depending on the direction I was
> >>>moving the mouse in. Thanks again for your help.
> >>>
> >>>Jason
> >>>
> >>>On Thu, 2004-12-02 at 11:24, Paul Spencer wrote:
> >>>
> >>>
> >>>>Jason,
> >>>>
> >>>>are you getting any javascript errors that could be used to figure out 
> >>>>what is going wrong?  Also check your web server logs and the source of 
> >>>>the page to see if there are error messages.
> >>>>
> >>>>Paul
> >>>>
> >>>>Jason Grimes wrote:
> >>>>
> >>>>
> >>>>>Well I have tracked the problem to FireFox and Netscape.  It also
> >>>>>appears to affect the Ruler widget as well.  The rubber band line ends
> >>>>>up in the upper left hand corner of the browser window.  I'm using
> >>>>>Chameleon version 1.99 beta 3.  The strange thing is that both of these
> >>>>>widgets work fine in the sample examples with FireFox.  In my new site
> >>>>>the widgets only work with IE.  So there must be something I'm not
> >>>>>setting up, but I can not find any difference between my new code and
> >>>>>the samples.  In fact I copied most of the code from the samples.  Any
> >>>>>ideas?  Thanks,
> >>>>>
> >>>>>Jason
> >>>>>
> >>>>>_______________________________________________
> >>>>>Chameleon mailing list
> >>>>>Chameleon at lists.maptools.org
> >>>>>http://lists.maptools.org/mailman/listinfo/chameleon
> >>>>>
> >>>
> >>>
> >>>
> > 
> > 



More information about the Chameleon mailing list