Hello ,
Does any one has put Google Maps in highslide-maincontent?
I'm trying to do the following: when i click on an icon  i want to
open a hs maincontent with google maps in it centered on coordinates
provided by me...or at least to open (better generate) a new page with
that map.
can this be done? where do i put   onload="load()" onunload="GUnload
()" functions because not all the icons provide me with the same
coordinates? How can i provide Lat and Lng to GLatLng function?
PS: I've tried to replace "this" with "load()"  on the event
onclick="return hs.htmlExpand(this,{ useControls: false })" but i
think it goes in to a infinite loop.

 $document->addCustomTag('<script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAmk***"
    type="text/javascript"></script>
    <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>');
...

<a class="Map" href="#" title="Geo Tag" id="'.$qId.'GPS"
onclick="return hs.htmlExpand(this,
{ useControls: false })">
<img src="'.JURI::base().'plugins/content/GVI/iCompas.png" alt="GeoTag
Image" width="16" height="16" style="margin-bottom:2px"/>
</a>
<div class="highslide-maincontent">
<div id="map" style="height: 480px; width: 480px"></div>
</div>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to