archive-com.com » COM » S » SVENNERBERG.COM

Total: 274

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Google Maps API 3 - Infow Windows
    blog Google Maps API 3 Info Windows This is an example of how to use Info Windows in Google Maps API 3 Simple map Properties Markers InfoWindows This example is part of the article series Google Maps API v3 which

    Original URL path: http://www.svennerberg.com/examples/google_maps_3/info_windows.html (2016-04-28)
    Open archived version from archive


  • Google Maps API 3 – Mobile devices | In usability we trust
    html body height 100 margin 0 map width 100 height 100 Notice that the height of the html and body tags are set to 100 with zero margin The reason for this is to make sure that the web page covers the entire height of the browser and that there s no white space around the map In the left image the default margin prevents the map from covering the entire screen whereas in the right image the margin is set to zero Disabling page zoom Mobile devices with touch screens often uses the pinch maneuver for zooming the web page When you have a map on that page you probably want the map to zoom rather than the entire web page Fortunately there s a special meta tag that can be used to disable page zooming It must be placed in the head section of the page and looks like this meta name viewport content initial scale 1 0 user scalable no Using this you make sure that the map work as expected Browsers that doesn t support this tag will simply ignore it so it s safe to use No hover state One final consideration that needs to be made is that there s no such thing as hover state mouseover on mobile devices Therefore you need to make sure that you don t use this for essential interactions such as showing vital information Live demo To see that this demo actually works as expected you need to access it from an iPhone or an Android based phone But it is of course entirely usable by desktop browsers too What you get is a web page with a maximized map regardless of what device you use to access it Check out the live demo Conclusion Developing maps for mobile devices is really not that different from developing them for desktop browsers As long as you re aware of their limitations you should be fine If you want to learn more about developing for the iPhone check out the Safari Dev Center To learn more about developing for Android based phones check out the Android documentation Do you know of any other considerations that need to be made when developing maps for mobile devices Please share in the comments My Google Maps book If you found this article useful you might be interested in my book Beginning Google Maps API 3 It covers everything you need to know to create awesome maps on your web sites Buy it on Amazon com Articles Previous post A week to launch Next post Dancing markers 7 Comments Google Maps November 26 2011 at 5 18 pm the google maps api 3 is the easiest one to use so far Reply Dan bhar December 19 2011 at 4 26 pm I m using this technique and it works really well Although I m having trouble with showing an infowindow It renders fine in portrait mode but in landscape it re sizes itself cutting

    Original URL path: http://www.svennerberg.com/2010/07/google-maps-api-3-%e2%80%93-mobile-devices/?replytocom=1252 (2016-04-28)
    Open archived version from archive

  • A week to launch | In usability we trust
    that you ll enjoy it as much as I ve enjoyed writing it News Previous post The state of this blog Next post Google Maps API 3 Mobile devices 9 Comments Dean Farrell July 12 2010 at 3 21 pm Gabriel Congratulations I m really looking forward to reading the book Reply Gabriel Svennerberg July 12 2010 at 10 28 pm Dean Thanks Dean It s really close now Reply Mark July 16 2010 at 3 41 pm Hey Gabriel Any idea if or when this book might be released on kindle Thanks Reply Johannes de Jong July 20 2010 at 7 04 pm Great timing I m busy re rewriting my site Just bought the e book version Johannes Reply Cameron Turner August 27 2010 at 8 27 pm This is awesome I can finally start to stop supporting the book we wrote in 2005 2006 Gabriel I hope your book has at least as long and successful a run as ours did It certainly is a fun ride interacting with readers and seeing what they turn your examples into Cam Turner Co Author of Beginning Google Maps Apps August 2006 Apress DON T BUY MY BOOK BUY GABRIEL S Reply Neelesh December 22 2010 at 6 35 pm Excellent book Thanks Reply Neelesh January 3 2011 at 10 55 pm Gabriel I created a map querying data from an Oracle database I also have another report in the same page that uses the same query to report If possible I would like to enable one of the values in the report to be a link to popup the appropriate info window in the map How can I do this I see a lot of example on the web but they are generating HTML as part of creating the

    Original URL path: http://www.svennerberg.com/2010/07/a-week-to-launch/?replytocom=786 (2016-04-28)
    Open archived version from archive

  • A week to launch | In usability we trust
    hope that you ll enjoy it as much as I ve enjoyed writing it News Previous post The state of this blog Next post Google Maps API 3 Mobile devices 9 Comments Dean Farrell July 12 2010 at 3 21 pm Gabriel Congratulations I m really looking forward to reading the book Reply Gabriel Svennerberg July 12 2010 at 10 28 pm Dean Thanks Dean It s really close now Reply Mark July 16 2010 at 3 41 pm Hey Gabriel Any idea if or when this book might be released on kindle Thanks Reply Johannes de Jong July 20 2010 at 7 04 pm Great timing I m busy re rewriting my site Just bought the e book version Johannes Reply Cameron Turner August 27 2010 at 8 27 pm This is awesome I can finally start to stop supporting the book we wrote in 2005 2006 Gabriel I hope your book has at least as long and successful a run as ours did It certainly is a fun ride interacting with readers and seeing what they turn your examples into Cam Turner Co Author of Beginning Google Maps Apps August 2006 Apress DON T BUY MY BOOK BUY GABRIEL S Reply Neelesh December 22 2010 at 6 35 pm Excellent book Thanks Reply Neelesh January 3 2011 at 10 55 pm Gabriel I created a map querying data from an Oracle database I also have another report in the same page that uses the same query to report If possible I would like to enable one of the values in the report to be a link to popup the appropriate info window in the map How can I do this I see a lot of example on the web but they are generating HTML as part of creating

    Original URL path: http://www.svennerberg.com/2010/07/a-week-to-launch/?replytocom=788 (2016-04-28)
    Open archived version from archive

  • A week to launch | In usability we trust
    that you ll enjoy it as much as I ve enjoyed writing it News Previous post The state of this blog Next post Google Maps API 3 Mobile devices 9 Comments Dean Farrell July 12 2010 at 3 21 pm Gabriel Congratulations I m really looking forward to reading the book Reply Gabriel Svennerberg July 12 2010 at 10 28 pm Dean Thanks Dean It s really close now Reply Mark July 16 2010 at 3 41 pm Hey Gabriel Any idea if or when this book might be released on kindle Thanks Reply Johannes de Jong July 20 2010 at 7 04 pm Great timing I m busy re rewriting my site Just bought the e book version Johannes Reply Cameron Turner August 27 2010 at 8 27 pm This is awesome I can finally start to stop supporting the book we wrote in 2005 2006 Gabriel I hope your book has at least as long and successful a run as ours did It certainly is a fun ride interacting with readers and seeing what they turn your examples into Cam Turner Co Author of Beginning Google Maps Apps August 2006 Apress DON T BUY MY BOOK BUY GABRIEL S Reply Neelesh December 22 2010 at 6 35 pm Excellent book Thanks Reply Neelesh January 3 2011 at 10 55 pm Gabriel I created a map querying data from an Oracle database I also have another report in the same page that uses the same query to report If possible I would like to enable one of the values in the report to be a link to popup the appropriate info window in the map How can I do this I see a lot of example on the web but they are generating HTML as part of creating the

    Original URL path: http://www.svennerberg.com/2010/07/a-week-to-launch/?replytocom=789 (2016-04-28)
    Open archived version from archive

  • The state of this blog | In usability we trust
    book Reply gomichild July 5 2010 at 3 36 am Congratulations On both fronts Reply Cameron Turner August 27 2010 at 8 21 pm Hi Gabriel I ve been meaning to stop by and congratulate you on the new book As a co author of the first Google maps book NOW OBSOLETE SO BUY GABRIEL s by Apress I agree that it s WAY more work than ever anticipated In fact we started writing the second edition when I was blessed with my 2nd child She didn t sleep at night and hence we bailed on Apress I m thrilled that someone was able to write a book about API 3 Congrats Cam Reply Gabriel Svennerberg August 27 2010 at 11 28 pm Hi Cameron Really nice hearing from you Thanks a lot for your kind words Our son still sleeps really well at night which truly is a blessing But wow I had no idea that that was the case with your book I guess that I owe your daughter a thanks for getting a chance to get my book published by Apress Reply Graham September 6 2010 at 6 22 pm Hi Gabriel I have just bought your book a very good read Congratulations on becoming a dad and I bet you thought writing a book was tough Reply Gabriel Svennerberg September 6 2010 at 11 44 pm Hi Graham How nice thank you very much Ha ha you re right Raising a child is definitely a lot tougher Reply Satishkmr953 October 29 2011 at 8 28 am i want to mark multiple locations but when i am executing in browser it is showing second location with marking position kindly help me with this problem Google Maps API Geocoding Demo var a new Array var b new Array var c new Array var d new Array var myCars new Array var userLocation new Array Hyderabad India Ghatkesar India if GBrowserIsCompatible var geocoder new GClientGeocoder for var i 0 i userLocation length i var j 0 geocoder getLocations userLocation i function locations if locations Placemark alert Hello userLocation j j var north locations Placemark 0 ExtendedData LatLonBox north var south locations Placemark 0 ExtendedData LatLonBox south var east locations Placemark 0 ExtendedData LatLonBox east var west locations Placemark 0 ExtendedData LatLonBox west a i north b i south c i east d i west alert MYWORLD MAPS a i bounds new GLatLngBounds new GLatLng south west new GLatLng north east alert MYWORLD MAPS bounds var map new GMap2 document getElementById map canvas map setCenter bounds getCenter map getBoundsZoomLevel bounds map addOverlay new GMarker bounds getCenter j function f1 Reply Satishkmr953 October 29 2011 at 8 28 am i want to mark multiple locations but when i am executing in browser it is showing second location with marking position kindly help me with this problem Google Maps API Geocoding Demo var a new Array var b new Array var c new Array var d new Array var myCars new Array

    Original URL path: http://www.svennerberg.com/2010/04/the-state-of-this-blog/?replytocom=780 (2016-04-28)
    Open archived version from archive

  • The state of this blog | In usability we trust
    the book Reply gomichild July 5 2010 at 3 36 am Congratulations On both fronts Reply Cameron Turner August 27 2010 at 8 21 pm Hi Gabriel I ve been meaning to stop by and congratulate you on the new book As a co author of the first Google maps book NOW OBSOLETE SO BUY GABRIEL s by Apress I agree that it s WAY more work than ever anticipated In fact we started writing the second edition when I was blessed with my 2nd child She didn t sleep at night and hence we bailed on Apress I m thrilled that someone was able to write a book about API 3 Congrats Cam Reply Gabriel Svennerberg August 27 2010 at 11 28 pm Hi Cameron Really nice hearing from you Thanks a lot for your kind words Our son still sleeps really well at night which truly is a blessing But wow I had no idea that that was the case with your book I guess that I owe your daughter a thanks for getting a chance to get my book published by Apress Reply Graham September 6 2010 at 6 22 pm Hi Gabriel I have just bought your book a very good read Congratulations on becoming a dad and I bet you thought writing a book was tough Reply Gabriel Svennerberg September 6 2010 at 11 44 pm Hi Graham How nice thank you very much Ha ha you re right Raising a child is definitely a lot tougher Reply Satishkmr953 October 29 2011 at 8 28 am i want to mark multiple locations but when i am executing in browser it is showing second location with marking position kindly help me with this problem Google Maps API Geocoding Demo var a new Array var b new Array var c new Array var d new Array var myCars new Array var userLocation new Array Hyderabad India Ghatkesar India if GBrowserIsCompatible var geocoder new GClientGeocoder for var i 0 i userLocation length i var j 0 geocoder getLocations userLocation i function locations if locations Placemark alert Hello userLocation j j var north locations Placemark 0 ExtendedData LatLonBox north var south locations Placemark 0 ExtendedData LatLonBox south var east locations Placemark 0 ExtendedData LatLonBox east var west locations Placemark 0 ExtendedData LatLonBox west a i north b i south c i east d i west alert MYWORLD MAPS a i bounds new GLatLngBounds new GLatLng south west new GLatLng north east alert MYWORLD MAPS bounds var map new GMap2 document getElementById map canvas map setCenter bounds getCenter map getBoundsZoomLevel bounds map addOverlay new GMarker bounds getCenter j function f1 Reply Satishkmr953 October 29 2011 at 8 28 am i want to mark multiple locations but when i am executing in browser it is showing second location with marking position kindly help me with this problem Google Maps API Geocoding Demo var a new Array var b new Array var c new Array var d new Array var myCars new

    Original URL path: http://www.svennerberg.com/2010/04/the-state-of-this-blog/?replytocom=781 (2016-04-28)
    Open archived version from archive

  • The state of this blog | In usability we trust
    Reply gomichild July 5 2010 at 3 36 am Congratulations On both fronts Reply Cameron Turner August 27 2010 at 8 21 pm Hi Gabriel I ve been meaning to stop by and congratulate you on the new book As a co author of the first Google maps book NOW OBSOLETE SO BUY GABRIEL s by Apress I agree that it s WAY more work than ever anticipated In fact we started writing the second edition when I was blessed with my 2nd child She didn t sleep at night and hence we bailed on Apress I m thrilled that someone was able to write a book about API 3 Congrats Cam Reply Gabriel Svennerberg August 27 2010 at 11 28 pm Hi Cameron Really nice hearing from you Thanks a lot for your kind words Our son still sleeps really well at night which truly is a blessing But wow I had no idea that that was the case with your book I guess that I owe your daughter a thanks for getting a chance to get my book published by Apress Reply Graham September 6 2010 at 6 22 pm Hi Gabriel I have just bought your book a very good read Congratulations on becoming a dad and I bet you thought writing a book was tough Reply Gabriel Svennerberg September 6 2010 at 11 44 pm Hi Graham How nice thank you very much Ha ha you re right Raising a child is definitely a lot tougher Reply Satishkmr953 October 29 2011 at 8 28 am i want to mark multiple locations but when i am executing in browser it is showing second location with marking position kindly help me with this problem Google Maps API Geocoding Demo var a new Array var b new Array var c new Array var d new Array var myCars new Array var userLocation new Array Hyderabad India Ghatkesar India if GBrowserIsCompatible var geocoder new GClientGeocoder for var i 0 i userLocation length i var j 0 geocoder getLocations userLocation i function locations if locations Placemark alert Hello userLocation j j var north locations Placemark 0 ExtendedData LatLonBox north var south locations Placemark 0 ExtendedData LatLonBox south var east locations Placemark 0 ExtendedData LatLonBox east var west locations Placemark 0 ExtendedData LatLonBox west a i north b i south c i east d i west alert MYWORLD MAPS a i bounds new GLatLngBounds new GLatLng south west new GLatLng north east alert MYWORLD MAPS bounds var map new GMap2 document getElementById map canvas map setCenter bounds getCenter map getBoundsZoomLevel bounds map addOverlay new GMarker bounds getCenter j function f1 Reply Satishkmr953 October 29 2011 at 8 28 am i want to mark multiple locations but when i am executing in browser it is showing second location with marking position kindly help me with this problem Google Maps API Geocoding Demo var a new Array var b new Array var c new Array var d new Array var myCars new Array var

    Original URL path: http://www.svennerberg.com/2010/04/the-state-of-this-blog/?replytocom=1289 (2016-04-28)
    Open archived version from archive



  •