Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-27-2011, 06:58 AM   #14 (permalink)
Sharafjaffri
Registered Member
 
Join Date: Mar 2011
Posts: 2
Sharafjaffri is on a distinguished road
Default

Quote:
Originally Posted by mStyle View Post
I am also looking for a way to display and work with a map; including display and update of current location (scroll map as current location moves) and adding markers/pin at specified locations.
Markers and info windows
Not all browsers support the Google API, and not all users run their browsers with Javascript enabled.
So use a <noscript> element to detect the situation where there is no Javascript, and use
GBrowserIsCompatible() to detect a non-compatible browser.

The createMarker() function not only sets up the marker and its event handler,
but it also causes local copies of the "marker" and "html" variables to be preserved for later use when the event gets triggered.
This is a special feature of the Javascript language called "function closure".

You can use almost any valid html in the info window, as long as the browser can work out the required height and width before rendering it.

For more details Visit my Blog
Learn Google Maps: Markers and info windows
Sharafjaffri is offline   Reply With Quote
 

» Advertisements
» Online Users: 400
14 members and 386 guests
asleylq98, Clouds, DaveDee, erdinc27, eski, jacob7khan, jeroenkeij, matador1978, networ, Pudding, sacha1996, shweta128, sirenum, Vijithasri06
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,596
Threads: 94,084
Posts: 402,781
Top Poster: BrianSlick (7,990)
Welcome to our newest member, shweta128
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:31 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.