This:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2/src/main/java/wicket/contrib/gmap/GMapHeaderContributor.java

is the heart of its JavaScript header contribution.
Beyond that I don't see no real reason to add any JavaScript to the HTML.
Just add it in its own *.js file and refer to that in the header section of
the HTML.

For your other JS Problem, have you seen Firebug? It's a Firefox add-on,
quite usefull for JavaScript debugging.

Martin



Ballist1c wrote:
> 
> I'll definately have a look at that over the next day or so. At the same
> time, i would like to learn how to work these headerContributors for other
> javascript based APIs :)
> 
> Thanks for the heads up martin,:)
> 
> 
> martinf wrote:
>> 
>> You have seen 
>> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2
>> havent you?
>> 
>> For GeoCoding check out the examples.
>> 
>> Martin
>> 
>> 
>> Ballist1c wrote:
>>> 
>>> Hey guys, 
>>> 
>>> I have been testing and attempting to get the google maps api running,
>>> with little avail.
>>> 
>>> I have done some digging around for info and components written for
>>> Google map api integration.  Unfortunately, the ones i have come across
>>> no longer exist in their respective SVNs :(
>>> 
>>> As much as I would like to use something that i can load up and parse in
>>> values, i would very much like to learn how to generate custom
>>> Javascript in the <head> tags like the one required for google maps to
>>> locate a position.
>>> 
>>> e.g.
>>> <script type="text/javascript">
>>> 
>>>    //<![CDATA[
>>> 
>>>    function load() {
>>>      if (GBrowserIsCompatible()) {
>>>        var map = new GMap2(document.getElementById("map"));
>>>        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
>>>      }
>>>    }
>>> 
>>>    //]]>
>>> </script> 
>>> 
>>> At the moment I am stuck on how to reference javascript from an external
>>> HTTP url, as opposed to a local js file. 
>>> 
>>> e.g. "http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABC";
>>> 
>>> If anyone has any tips, that would be greatly appreciated :)
>>> 
>>> Thanks guys, 
>>> 
>>> Take care,
>>> Leo!
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Google-Maps-API-tf4553339.html#a12994699
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to