SlideShare a Scribd company logo
1 of 20
GIS
     MAP API

 Eric C.Y., Lee
Agenda

• Introduction
• API Market
• API: How to program
• Reference
Introduction

• The definition of GIS:
 • Geographic Information System
 • Geographic Information Science
 • Geographic Information Service
Desktop Software

• ArcGIS
• Quantum GIS (Open Source)
• GRASS GIS (Open Source)
• Google Earth
Database

• Boeing Spatial Query Server
• Oracle Spatial
• ESRI ArcSDE
Knowledge

• Geodetic System
 • WGS84
 • TWD97, TWD67
API Market
• Foreign
 • Yahoo MAP
 • Google MAP
 • Microsoft Virtual Earth
• Local
 • Urmap
 • Taiwan MAP
Comparable
                                           Microsoft
                Yahoo! Map   Google Map                      Urmap       Taiwan Map
                                          Virtual Earth

 Require API
                   YES          YES           NO              YES            YES
    Key?

 Display area
                  World        World         World        Only Taiwan    Only Taiwan
    range

                                                               YES            YES
API Document       YES          YES       YES (MSDN)
                                                          (in Chinese)   (in Chinese)

  Search by                                                   No
                   YES          YES           YES                            YES
   Address                                                (Commercial)


   Marker          YES          YES           YES             YES            YES
Before using the API
     All you need is API Key
Using Map API
Geocode
• By REST Web Service
      http://local.yahooapis.com/MapsService/V1/geocode?
    appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--
                          &city=peitou

                              Response:
                              <?xml version=quot;1.0quot;?>
                              <ResultSet xmlns:xsi=quot;http://www.w3.org/2001/XMLSchema-instance
                              xsi:schemaLocation=quot;urn:yahoo:maps http://api.local.yahoo.com/M
                              GeocodeResponse.xsdquot;>
                              <Result precision=quot;zipquot;>
                              <Latitude>25.130590</Latitude>
                              <Longitude>121.498306</Longitude>
                              <Address></Address>
                              <City>Beitou District</City>
                              <State>Taiwan</State>
                              <Zip></Zip>
                              <Country>TW</Country>
                              </Result>
                              </ResultSet>
                              <!-- ws03.ydn.gq1.yahoo.com compressed/chunked Tue May 5 23:50
Hello Map
<!DOCTYPE html quot;-//W3C//DTD XHTML 1.0 Strict//ENquot;
  quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtdquot;>
<html xmlns=quot;http://www.w3.org/1999/xhtmlquot;>
  <head>
    <meta http-equiv=quot;content-typequot; content=quot;text/html; charset=utf-8quot;/>
    <title>Google Maps JavaScript API Example</title>
    <script src=quot;http://maps.google.com/maps?
file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_falsequot;
            type=quot;text/javascriptquot;></script>
    <script type=quot;text/javascriptquot;>

    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById(quot;map_canvasquot;));
        map.setCenter(new GLatLng(25.1225,121.5140), 13);
        map.setUIToDefault();
      }
    }

    </script>
  </head>
  <body onload=quot;initialize()quot; onunload=quot;GUnload()quot;>
    <div id=quot;map_canvasquot; style=quot;width: 500px; height: 300pxquot;></div>
  </body>
</html>
Map Center
                   setCenter( )

•   map.setCenter(new GLatLng(25.1225,121.5140), 15);
Map Type
•   map.setMapType(G_SATELLITE_MAP);
• G_NORMAL_MAP displays the default road map view

• G_SATELLITE_MAP displays Google Earth satellite images

• G_HYBRID_MAP displays a mixture of normal and satellite views
Control
                    addControl( )

•   Position Control GControlPosition()

    •   G_ANCHOR_TOP_RIGHT or BUTTOM_RIGHT

    •   G_ANCHOR_TOP_LEFT or BUTTOM_LEFT

•   Map Control

    •   GSmallMapControl()

    •   GLargeMapControl()
Info Window
•   map.openInfoWindow(map.getCenter(),document.
    createTextNode(quot;Here is Yang-Ming Universityquot;));
Marker
                      map.addOverlay( )
var point = new GLatLng(25.1225, 121.5140);
var marker = new GMarker(point);
map.addOverlay(marker);
Listener
                GEvent.addListener( )

GEvent.addListener(marker, quot;clickquot;, function() {
	 	 marker.openInfoWindowHtml(quot;                  quot;);
		    });
Our Style Marker
                                    GIcon( )
var icon = new GIcon();
	 	 icon.image = quot;http://b017.web.ym.edu.tw/ezcatfiles/b017/img/img/331/img002-s.jpgquot;;
	 	 icon.iconSize = new GSize(40, 40);
	 	 icon.iconAnchor = new GPoint(6, 20);
	 	 icon.infoWindowAnchor = new GPoint(5, 1);

var marker = new GMarker(center, icon);
	 	 map.addOverlay(marker);
Reference


• Google Maps API Document
• atenasio.googlepages.com

More Related Content

Similar to Google MAP API

Html and i_phone_mobile-2
Html and i_phone_mobile-2Html and i_phone_mobile-2
Html and i_phone_mobile-2tonvanbart
 
Mobile Data: How to avoid the latency trap - SWDC 2010
Mobile Data: How to avoid the latency trap - SWDC 2010Mobile Data: How to avoid the latency trap - SWDC 2010
Mobile Data: How to avoid the latency trap - SWDC 2010Tom Croucher
 
GeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting LanguagesGeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting LanguagesJustin Deoliveira
 
Comet, Simplified, with Jabbify Comet Service
Comet, Simplified, with Jabbify Comet ServiceComet, Simplified, with Jabbify Comet Service
Comet, Simplified, with Jabbify Comet ServiceBrian Moschel
 
MashUp Mania: How Reebok Created the Ultimate Mashup and You Can Too
MashUp Mania: How Reebok Created the Ultimate Mashup and You Can TooMashUp Mania: How Reebok Created the Ultimate Mashup and You Can Too
MashUp Mania: How Reebok Created the Ultimate Mashup and You Can TooMolecular Inc
 
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVGJavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVGPatrick Chanezon
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCJim Tochterman
 
Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3Michael Maclennan
 
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...Allan Glen
 
Where20 2008 Ruby Tutorial
Where20 2008 Ruby TutorialWhere20 2008 Ruby Tutorial
Where20 2008 Ruby TutorialShoaib Burq
 
Wai Aria - An Intro
Wai Aria - An IntroWai Aria - An Intro
Wai Aria - An IntroMatt Machell
 
Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!
Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!
Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!360|Conferences
 
Advanced Android gReporter
Advanced Android gReporterAdvanced Android gReporter
Advanced Android gReporternatdefreitas
 
Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...Javeline B.V.
 
Mobile And The Latency Trap
Mobile And The Latency TrapMobile And The Latency Trap
Mobile And The Latency TrapTom Croucher
 
Mapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter SmithMapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter SmithSpatialSmith
 
Open Maps (Or Close Enough?)
Open Maps (Or Close Enough?)Open Maps (Or Close Enough?)
Open Maps (Or Close Enough?)Pamela Fox
 

Similar to Google MAP API (20)

Html and i_phone_mobile-2
Html and i_phone_mobile-2Html and i_phone_mobile-2
Html and i_phone_mobile-2
 
Mobile Data: How to avoid the latency trap - SWDC 2010
Mobile Data: How to avoid the latency trap - SWDC 2010Mobile Data: How to avoid the latency trap - SWDC 2010
Mobile Data: How to avoid the latency trap - SWDC 2010
 
GeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting LanguagesGeoScript - Spatial Capabilities for Scripting Languages
GeoScript - Spatial Capabilities for Scripting Languages
 
Google maps
Google mapsGoogle maps
Google maps
 
Google maps
Google mapsGoogle maps
Google maps
 
Comet, Simplified, with Jabbify Comet Service
Comet, Simplified, with Jabbify Comet ServiceComet, Simplified, with Jabbify Comet Service
Comet, Simplified, with Jabbify Comet Service
 
MashUp Mania: How Reebok Created the Ultimate Mashup and You Can Too
MashUp Mania: How Reebok Created the Ultimate Mashup and You Can TooMashUp Mania: How Reebok Created the Ultimate Mashup and You Can Too
MashUp Mania: How Reebok Created the Ultimate Mashup and You Can Too
 
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVGJavaOne 2009 -  2d Vector Graphics in the browser with Canvas and SVG
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
 
Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3Technology Of The Geospatial Web Nov3
Technology Of The Geospatial Web Nov3
 
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
GIS in the Rockies 2011: Building Distributed JavaScript Map Widgets with Ope...
 
Where20 2008 Ruby Tutorial
Where20 2008 Ruby TutorialWhere20 2008 Ruby Tutorial
Where20 2008 Ruby Tutorial
 
Wai Aria - An Intro
Wai Aria - An IntroWai Aria - An Intro
Wai Aria - An Intro
 
Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!
Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!
Mansour Raad & Anthony Jayaprakash - Yet Another Mapping Framework, NOT!
 
Advanced Android gReporter
Advanced Android gReporterAdvanced Android gReporter
Advanced Android gReporter
 
Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...Beholding the giant pyramid of application development; why Ajax applications...
Beholding the giant pyramid of application development; why Ajax applications...
 
Web 2.0 And Ajax
Web 2.0 And AjaxWeb 2.0 And Ajax
Web 2.0 And Ajax
 
Mobile And The Latency Trap
Mobile And The Latency TrapMobile And The Latency Trap
Mobile And The Latency Trap
 
Mapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter SmithMapping For Sharepoint T11 Peter Smith
Mapping For Sharepoint T11 Peter Smith
 
Open Maps (Or Close Enough?)
Open Maps (Or Close Enough?)Open Maps (Or Close Enough?)
Open Maps (Or Close Enough?)
 

Recently uploaded

Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...home
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptxVanshNarang19
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceanilsa9823
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxTusharBahuguna2
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Call Girls in Nagpur High Profile
 
Case Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, PuneCase Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, PuneLukeKholes
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsCharles Obaleagbon
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Servicearoranaina404
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Delhi Call girls
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdftbatkhuu1
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...SUHANI PANDEY
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfParomita Roy
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxjanettecruzeiro1
 
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...Call Girls in Nagpur High Profile
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...ranjana rawat
 
Stark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxStark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxjeswinjees
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...Call Girls in Nagpur High Profile
 

Recently uploaded (20)

Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
 
Fashion trends before and after covid.pptx
Fashion trends before and after covid.pptxFashion trends before and after covid.pptx
Fashion trends before and after covid.pptx
 
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Aminabad Lucknow best Night Fun service
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptx
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
 
Case Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, PuneCase Study of Hotel Taj Vivanta, Pune
Case Study of Hotel Taj Vivanta, Pune
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past Questions
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
 
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Kalyani Nagar ( Pune ) Call ON 8005736733 Starting From ...
 
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdfChapter 19_DDA_TOD Policy_First Draft 2012.pdf
Chapter 19_DDA_TOD Policy_First Draft 2012.pdf
 
SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptx
 
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
 
꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...
꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...
꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...
 
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
young call girls in Pandav nagar 🔝 9953056974 🔝 Delhi escort Service
 
Stark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxStark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptx
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
 

Google MAP API

  • 1. GIS MAP API Eric C.Y., Lee
  • 2. Agenda • Introduction • API Market • API: How to program • Reference
  • 3. Introduction • The definition of GIS: • Geographic Information System • Geographic Information Science • Geographic Information Service
  • 4. Desktop Software • ArcGIS • Quantum GIS (Open Source) • GRASS GIS (Open Source) • Google Earth
  • 5. Database • Boeing Spatial Query Server • Oracle Spatial • ESRI ArcSDE
  • 6. Knowledge • Geodetic System • WGS84 • TWD97, TWD67
  • 7. API Market • Foreign • Yahoo MAP • Google MAP • Microsoft Virtual Earth • Local • Urmap • Taiwan MAP
  • 8. Comparable Microsoft Yahoo! Map Google Map Urmap Taiwan Map Virtual Earth Require API YES YES NO YES YES Key? Display area World World World Only Taiwan Only Taiwan range YES YES API Document YES YES YES (MSDN) (in Chinese) (in Chinese) Search by No YES YES YES YES Address (Commercial) Marker YES YES YES YES YES
  • 9. Before using the API All you need is API Key
  • 11. Geocode • By REST Web Service http://local.yahooapis.com/MapsService/V1/geocode? appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA-- &city=peitou Response: <?xml version=quot;1.0quot;?> <ResultSet xmlns:xsi=quot;http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=quot;urn:yahoo:maps http://api.local.yahoo.com/M GeocodeResponse.xsdquot;> <Result precision=quot;zipquot;> <Latitude>25.130590</Latitude> <Longitude>121.498306</Longitude> <Address></Address> <City>Beitou District</City> <State>Taiwan</State> <Zip></Zip> <Country>TW</Country> </Result> </ResultSet> <!-- ws03.ydn.gq1.yahoo.com compressed/chunked Tue May 5 23:50
  • 12. Hello Map <!DOCTYPE html quot;-//W3C//DTD XHTML 1.0 Strict//ENquot; quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtdquot;> <html xmlns=quot;http://www.w3.org/1999/xhtmlquot;> <head> <meta http-equiv=quot;content-typequot; content=quot;text/html; charset=utf-8quot;/> <title>Google Maps JavaScript API Example</title> <script src=quot;http://maps.google.com/maps? file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_falsequot; type=quot;text/javascriptquot;></script> <script type=quot;text/javascriptquot;> function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById(quot;map_canvasquot;)); map.setCenter(new GLatLng(25.1225,121.5140), 13); map.setUIToDefault(); } } </script> </head> <body onload=quot;initialize()quot; onunload=quot;GUnload()quot;> <div id=quot;map_canvasquot; style=quot;width: 500px; height: 300pxquot;></div> </body> </html>
  • 13. Map Center setCenter( ) • map.setCenter(new GLatLng(25.1225,121.5140), 15);
  • 14. Map Type • map.setMapType(G_SATELLITE_MAP); • G_NORMAL_MAP displays the default road map view • G_SATELLITE_MAP displays Google Earth satellite images • G_HYBRID_MAP displays a mixture of normal and satellite views
  • 15. Control addControl( ) • Position Control GControlPosition() • G_ANCHOR_TOP_RIGHT or BUTTOM_RIGHT • G_ANCHOR_TOP_LEFT or BUTTOM_LEFT • Map Control • GSmallMapControl() • GLargeMapControl()
  • 16. Info Window • map.openInfoWindow(map.getCenter(),document. createTextNode(quot;Here is Yang-Ming Universityquot;));
  • 17. Marker map.addOverlay( ) var point = new GLatLng(25.1225, 121.5140); var marker = new GMarker(point); map.addOverlay(marker);
  • 18. Listener GEvent.addListener( ) GEvent.addListener(marker, quot;clickquot;, function() { marker.openInfoWindowHtml(quot; quot;); });
  • 19. Our Style Marker GIcon( ) var icon = new GIcon(); icon.image = quot;http://b017.web.ym.edu.tw/ezcatfiles/b017/img/img/331/img002-s.jpgquot;; icon.iconSize = new GSize(40, 40); icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(5, 1); var marker = new GMarker(center, icon); map.addOverlay(marker);
  • 20. Reference • Google Maps API Document • atenasio.googlepages.com

Editor's Notes