hi, trying to use setLayerQueryable from latest CVS, i get javascript errors.<br>
i notice in kaMap.js on line: 1691, bVisible should be bQueryable.<br>
<br>
-brent<br>
<br>
<br>
<br><div><span class="gmail_quote">On 9/27/05, <b class="gmail_sendername">Paul Spencer</b> <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Brent,<br><br>thanks for picking this up. I could have sworn that was working when<br>I committed it, now it isn't. Well, actually it is, but I just fixed<br>it and committed the change to cvs. Please give it a try :)<br>
<br>Cheers<br><br>Paul<br><br>On 27-Sep-05, at 5:18 PM, Brent Pedersen wrote:<br><br>> hi paul, thanks for all the great work.<br>> i get some errors with the new cvs version:<br>><br>> 1. in my javascript console: kaTool_onmouseout is not defined
<br>> (kaTool.js line 227)<br>><br>> 2. also in js console 'myKaQuery.activate is not a function'<br>> and the query tool doesn't work. i can fix that by changing to<br>> myKaMap.activateTool(myKaQuery)
<br>><br>> this happens with the index.html that you distribute.<br>> i couldn't see how to fix them. any ideas?<br>> -brent<br>><br>> On 9/27/05, Paul Spencer <<a href="mailto:pspencer@dmsolutions.ca">
pspencer@dmsolutions.ca</a>> wrote: All,<br>><br>> once again, I've made some fairly substantial changes in code<br>> structure to accommodate some of the work I am doing. This time, I<br>> have changed how objects are declared in the javascript source.
<br>><br>> Originally, I had code that declared objects and used<br>> var kaMap()<br>> {<br>> this.aFunction = kaMap_aFunction;<br>> }<br>><br>> function kaMap_aFunction()<br>> {<br>> }<br>
><br>> As Ben Nolan pointed out, this pollutes the global namespace in<br>> javascript. Rather than take the full plunge into using prototype.js<br>> (), I've changed the references to:<br>><br>> var kaMap()
<br>> {<br>> }<br>><br>> kaMap.prototype.aFunction = function()<br>> {<br>> }<br>><br>> I have also moved some of the core DHTMLapi functions into the kaMap<br>> class and modified (hopefully) all of the references to these
<br>> functions appropriately for the internal use of these files.<br>><br>> I've still left DHTMLapi.js in the index.html file as its functions<br>> are used there to layout the page (and I don't think it is<br>
> appropriate to move all that code into kaMap)<br>><br>> If anyone has built a kaTool-based tool, you'll need to add a little<br>> loop at the bottom of your constructor to copy the prototype<br>> properties (and you should probably switch to using prototype at this
<br>> time). See kaTool and kaQuery for examples.<br>><br>> There is no substantial change to functionality, and everything<br>> appears to work. However, it should be considered somewhat unstable<br>> at this point so test heavily and let me know :)
<br>><br>> Cheers<br>><br>> Paul<br>><br>> +-----------------------------------------------------------------+<br>>
|Paul
Spencer
<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a> |<br>> +-----------------------------------------------------------------+<br>>
|Applications & Software
Development |<br>>
|DM Solutions Group
Inc
<a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>> +-----------------------------------------------------------------+<br>><br>><br>><br>><br>> _______________________________________________
<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br>><br>> _______________________________________________<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>><br><br>+-----------------------------------------------------------------+<br>|Paul
Spencer
<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a> |<br>+-----------------------------------------------------------------+<br>|Applications
& Software
Development |<br>|DM
Solutions Group
Inc
<a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>+-----------------------------------------------------------------+<br><br><br><br><br></blockquote></div><br>