Hello:
@JCG: if you take a look at the application you'll see that the maps application of the iphone is unusable. @all: then i really dont't know why this is not working: http://nulaz.com/~pablo/NulazIgniter i hope you can see the js files, the code for adding the controls is in map_iphone.js its working properly on safari with developer->User-Agent-> Mobile Safari iphone. but definitly not on the iphone. On the iphone the pins are not clickable, there is no update of the pins after dragend event (update logic is if dragging goes over the half of the screen). Neither double finger zooming and zoom in/out with the controls works. on the other site i fixed the problem with the iphone that way: I added absolute positioned elements on the page. map = new GMap2(document.getElementById("map")); GEvent.addDomListener(document.getElementById('btn_zoom_in'), 'click', function() { map.zoomIn(); }); GEvent.addDomListener(document.getElementById('btn_map_update'), 'click', function() { var point2 = map.fromLatLngToDivPixel(map.getCenter()); if((Math.abs(Math.abs(center_point.x) - Math.abs(point2.x)) > $ ('#map').width()/3 || Math.abs(Math.abs(center_point.y) - Math.abs(point2.y)) > $('#map').height()/3)) { loadPublicLocations(); loadFavoriteLocations(); loadMyFriends(); loadPublicPeople(); loadRSS(); } }); Neither this works on that version on the iphone: GEvent.addListener(marker, "mouseover", function() { elabel.openOnMarker(marker, label); }); (this should show tooltips if you So i think the biggest problem in my case is, that the evnets (dragend, click, etc.) are not recognized by the iphone hope i gave you all the infos to describe my problem best regards Am 08.09.2008 um 03:41 schrieb Nick May: > > There is no problem at all about using the google maps api to embed a > map on a page so that it can be read on an iphone. > > That said, as far as I am aware - on the limited testing I have done - > using webkit transforms to handle scrolling is faster than the > javascript methods. > > Nick > > On Sep 7, 2008, at 10:43 PM, pariswiki wrote: > >> >> Hi, >> >> I understand that one cannot embed maps directly within a Mobile >> Safari page, but I can assure you that it is possible to activate >> directly from a link inside a web page the Google Map module of the >> iphone: >> >> <a href="http://maps.google.com/maps?q=cambrils,+spain">Cambrils</a> >> or >> <a class="cuiServiceButton" target="_self" href="http:// >> maps.google.com/maps?q=54+Bd+de+Grenelle,+Paris,+France+(Amy's >> Home)">54 Bd de Grenelle Paris France</a> >> >> JCG >> >> On 5 sep, 21:48, davidroe <[EMAIL PROTECTED]> wrote: >>> you are better off using Safari and changing the user agent, as >>> Safari >>> on the PC/Mac more closely resembles Safari on the iPhone/iPod. for >>> example, there are certain CSS statements that work on Safari on all >>> devices but nowhere on Firefox. >>> >>> /dave >>> >>> On Sep 5, 1:47 am, ade <[EMAIL PROTECTED]> wrote: >>> >>>> Nick May wrote: >>>>> Basically, get the map working in desktop safari first (you can >>>>> set it >>>>> to send an iphone user agent in the Develop menu - not sure if >>>>> this is >>>>> available by default - or use Firefox with an iphone user agent) >>>>> - and >>>>> all should be well on the iphone.... >>> >>>> that is a great tip :) >>> >>>> firefox switcher is at:https://addons.mozilla.org/en-US/firefox/addon/59 >>> >>>> string is: >>>> Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 >>>> (KHTML, >>>> like Gecko) Version/3.0 Mobile/3B48b Safari/419.3 >>> >>>> ade >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
