Using the Google Maps API
(like you can see in http://www.remi-grumeau.com/labs/iui/ --> Using Google
Maps)
on the HTML side
index.html w/ a link to gmaps.html
+ google maps API js code
+ iui-eventlog.js
+ the following javascript code
var map;
function loadGMAP(divID)
{
map = new GMap2(document.getElementById(divID));
map.setCenter(new GLatLng(52,-5), 5);
map.setUIToDefault();
}
in gmaps.html
<div id="default_map" title="Default Map">
<div id="dmap"></div>
</div>
And finally, i've modified the logEvent function adding the last elseif in
iui-event-log.js (located in iui/js/ )
function logEvent(e)
{
console.log("logEvent type: " + e.type + " target " + e.target.tagName
+ "#" + e.target.id);
if (e.type == "beforeinsert") {
console.log(" fragment = " + e.fragment);
}
else if (e.type == "afterinsert") {
console.log(" node = " + e.insertedNode);
}
else if (e.type == "focus")
{
if(e.target.id == 'default_map')
loadGMAP('dmap');
}
}
Hope this helps someone, or even give anyone the opportunity to bring us a
cleaner solution to do so…
Remi
Le 8 mars 2010 à 09:57, goll a écrit :
> Merci pour ta reponse, Remi.
>
> On Mar 5, 5:56 pm, Remi Grumeau <[email protected]> wrote:
>> I think the afterTransition event can helps you to delete/change the button
>> when transition is finished.
>> you can do that 'easily' by using the ext-event.js, in the ext-sandbox
>> folder.
>>
>> But perhaps someone have a better solution ... ?
>
> Does this mean, that there isn't an entirely 'clean' solution?
> (Forgive me if this is a silly question. I'm not a javascript-
> framework expert).
>
> Thanks
>
> Rolf
>
> --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" 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/iphonewebdev?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" 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/iphonewebdev?hl=en.