I am very glad I could help out. I'm excited to see what you come up with!<br><br>Sam<br><br><br><div><span class="gmail_quote">On 8/7/07, <b class="gmail_sendername">Alessio Di Lorenzo</b> <<a href="mailto:alessio.dilorenzo@gmail.com">
alessio.dilorenzo@gmail.com</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;">YES!!!!!<br>Sam, you're right! It works!
<br><br>In the next days I'll try to add all the other tools :)<br><br>At the moment the good working code is this:<br><br><html><br> <head><br> <title>Customizing Ka-Map!</title><br>
<br> <script type="text/javascript" src="DHTMLapi.js"></script><br> <script type="text/javascript" src="xhr.js"></script><br> <script type="text/javascript" src="
kaMap.js"></script><br> <script type="text/javascript" src=" kaTool.js"></script><br> <script type="text/javascript" src="kaLegend.js"></script>
<br><br> <script type="text/javascript"><br> var myKaMap;<br> var myKaNav;<br><br> function myOnLoad() {<br> myKaMap = new kaMap( 'mapDiv' );
<br> myKaMap.server =<br>' <a href="http://localhost/luoghidabruzzo/ka-map/htdocs/">http://localhost/luoghidabruzzo/ka-map/htdocs/</a>';<br> myKaMap.initialize();<br><br> myNav = new kaNavigator ( myKaMap );
<br> myNav.activate ();<br><br> myKaLegend = new kaLegend( 'legend' );<br><br> }<br><br> </script><br><br> </head><br> <body onload="myOnLoad();">
<br><br> <div id="mapDiv"><br> </div><br><br> <div id="legend">legenda<br> </div><br><br> </body>
<br></html><br><br><style type="text/css"><br> #mapDiv {<br> position: relative;<br> width: 640px;<br> height: 480px;<br> background-color: white;<br> border: 1px solid black;
<br> }<br></style><br><br><br>It's very very simple but I hope this could be helpful for someone who<br>want to start the creation of his own ka-map interface.<br><br>Samuel, if you want you can put it in your wiki tutorial as a basic example.
<br><br>Thanks a lot for your precious help!<br><br>Alessio<br><br><br><br>Samuel Hiatt ha scritto:<br>> Ok... I got your code working...<br>><br>> All you need to do is add your kaMap object to the parameters of the
<br>> kaLegend call... so it should be:<br>> myKaLegend = new kaLegend( myKaMap, 'legend' );<br>><br>> kaLegend.js does say that all you need to do is add the name of the<br>> div, but apparently it is wrong. You gotta make sure to reference
<br>> which map the legend is for.<br>><br>> Take a look at the kaExplorer startUp.js (probably located at<br>> /tools/kaExplorer/startUp.js)... it adds a legend with some additional<br>> parameters that set the legend options.
<br>><br>> Hope it works!<br>><br>> Sam<br>><br>><br>> On 8/7/07, *Alessio Di Lorenzo* <<a href="mailto:alessio.dilorenzo@gmail.com">alessio.dilorenzo@gmail.com</a><br>> <mailto:<a href="mailto:alessio.dilorenzo@gmail.com">
alessio.dilorenzo@gmail.com</a>>> wrote:<br>><br>><br>> my code now is the following:<br>><br>> <html><br>> <head><br>> <title>Customizing Ka-Map!</title>
<br>><br>> <script type="text/javascript" src="DHTMLapi.js"></script><br>> <script type="text/javascript" src="xhr.js"></script>
<br>> <script type="text/javascript" src="kaMap.js"></script><br>> <script type="text/javascript" src=" kaTool.js"></script><br>> <script type="text/javascript" src="
kaLegend.js"></script><br>><br>> <script type="text/javascript"><br>> var myKaMap;<br>> var myKaNav;<br>><br>> function myOnLoad() {
<br>> myKaMap = new kaMap( 'mapDiv' );<br>> myKaMap.server =<br>> ' <a href="http://localhost/luoghidabruzzo/ka-map/htdocs/">http://localhost/luoghidabruzzo/ka-map/htdocs/
</a>';<br>> myKaMap.initialize();<br>><br>> myNav = new kaNavigator ( myKaMap );<br>> myNav.activate ();<br>><br>> myKaLegend = new kaLegend( 'legend' );
<br>><br>> }<br>><br>> </script><br>><br>> </head><br>> <body onload="myOnLoad();"><br>><br>> <div id="mapDiv">
<br>> </div><br>><br>> <div id="legend">legenda<br>> </div><br>><br>> </body><br>> </html>
<br>><br>> <style type="text/css"><br>> #mapDiv {<br>> position: relative;<br>> width: 640px;<br>> height: 480px;<br>> background-color: white;
<br>> border: 1px solid black;<br>> }<br>> </style><br>><br>><br>><br>> If you try to use it, you get something working? (including the<br>> legend...)<br>>
<br>><br>> Alessio<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></blockquote></div><br>