SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Yandex Maps API


         Andrey
Karmatsky
            karma@yandex‐team.ru
Яндекс
.Карты
    Yandex
Maps:
         –   180
ci8es
of
Russia,
Ukraine
and
other
CIS
countries
         –   World
map
in
Russian
         –   Detailed
satellite
images
for
300
ci8es
Яндекс
.Карты




         Map   Hybrid   Satellite
API
Yandex
Maps
is
free
Our toolbox for developers


      Яндекс               API
Я.Карт


          JavaScript
API

               Sta$c
API

               Geocoder

                Router

               YMapsML
JavaScript API
Interactive map on your page
JavaScript API

  Quick
start
 Add API script
       <script src=“http://api-maps.yandex.ru/{version}/key={API-
       key}”/>


 Add placeholder for the map
       <div id=“mapID” style=“width:200px; height:200px;”>


 Initialize the map
       var map = new YMaps.Map(YMaps.jQuery(“#mapID”));
       map.setCenter(
            new YMaps.GeoPoint(39.68,47.25),    // set center
            10,                                 // set zoom
            YMaps.MapType.MAP                   // map type
       );



  Example: http://api.yandex.ru/maps/jsapi/examples/mapbasics.html
JavaScript API

    User
interac8on
     –   Built-in functions
     (dragging map, zooming by double-click, zooming by mouse wheel, right-click area selection,
         hot keys, ruler)

     –   Standard control elements
     (search bar, toolbar, map type selector, zoom control, preview map window)

     –   YMaps.IControl – to create your custom controls

    Example: http://api.yandex.ru/maps/jsapi/examples/mapcontrolsadding.html
JavaScript API

    Objects
on
the
map
       Placemarks
       http://api.yandex.ru/maps/jsapi/examples/coordinatesmarkers.html

       Polylines
       http://api.yandex.ru/maps/jsapi/examples/mappolylinesediting.html

       Polygons
       http://api.yandex.ru/maps/jsapi/examples/mapstylepolygon.html


       You can customize object styles: placemark icon and shadow image, color and
       thickness of lines and polygon border, polygon fill color

       YMaps.IOverlay – to create your custom objects
•   Здесь
нужна
картинка
кальки

     Static API
     Embedded map image on your page
Stati
c
API
        Map
parameters
         Size

         Zoom

         View area

         Map objects: placemarks, polylines, polygons



         Example: http://static-maps.yandex.ru/1.x/?l=map&pl=c:8822DDC0,w:
            5,37.656577,55.741176,37.656748,55.741419,37.655131,55.741814,37.658257,55.74252
            4,37.659811,55.743066,37.659667,55.743233,37.659551,55.743603,37.659775,55.74392
            8,37.662398,55.745281&pt=37.656577,55.741176,pmrdm1~37.662398,55.745281,pmblm
            2~37.667788,55.732017,pmwtl3&key=ABYQNEkBAAAAgM-
            ZTwMAK_IKAfJkc-72mWoAq8el6lFmTeEAAAAAAAAAAAChHQgTyECkUqGduyet_fMaeQ
            6ckw==



         More StaticAPI examples: http://api.yandex.ru/maps/staticapi/examples/
Geocoder
convert an address into
geographic coordinates
Geocoder



      –    reverse-geocoding
           –   coordinates into address
      –    spell-checking
      –    viewport biasing
      –    language selection
      –    paging
Geocoder

    Geocoder interfaces
      JavaScript geocoder:
           –   YMaps.Geocoder object in JavaScript API
           –   Search bar control (YMaps.SearchControl)




      XML-based HTTP-service
      http://geocode-maps.yandex.ru/1.x/
Router
get
driving
direc8ons
Router




         YMaps.Router object in JS API
         –   returns
             –   route length and time
             –   detailed driving directions
             –   route geometry (polyline)
         –   now available in Moscow and Ukraine (in «beta»)
Thank you

Developers forum – http://clubs.ya.ru/mapsapi/
   Support – support@api-maps.yandex.ru
Documentation – http://api.yandex.ru/maps/doc/
    Website – http://api.yandex.ru/maps/


                 Andrey
Karmatsky
                     karma@yandex‐team.ru

Weitere ähnliche Inhalte

Ähnlich wie Yandex Maps API

ESRI Dev Meetup: Building Distributed JavaScript Map Widgets
ESRI Dev Meetup: Building Distributed JavaScript Map WidgetsESRI Dev Meetup: Building Distributed JavaScript Map Widgets
ESRI Dev Meetup: Building Distributed JavaScript Map WidgetsAllan Glen
 
Drupal and the GeoSpatial Web
Drupal and the GeoSpatial WebDrupal and the GeoSpatial Web
Drupal and the GeoSpatial WebAndrew Turner
 
3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Pro3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Prothangqd
 
Web enabling your survey business ppt version
Web enabling your survey business ppt versionWeb enabling your survey business ppt version
Web enabling your survey business ppt versionrudy_stricklan
 
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)Ossama Alami
 
ArcGIS JavaScript API (build a web layer-based map application with html5 and...
ArcGIS JavaScript API (build a web layer-based map application with html5 and...ArcGIS JavaScript API (build a web layer-based map application with html5 and...
ArcGIS JavaScript API (build a web layer-based map application with html5 and...Stefano Marchisio
 
Hands on with the Google Maps Data API
Hands on with the Google Maps Data APIHands on with the Google Maps Data API
Hands on with the Google Maps Data APIss318
 
ArcGIS API for Javascript Tutorial
ArcGIS API for Javascript TutorialArcGIS API for Javascript Tutorial
ArcGIS API for Javascript TutorialMohammed Mahmoud
 
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
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece CoLab Athens
 
EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)Pere Roca Ristol
 
Build with live location data
Build with live location dataBuild with live location data
Build with live location dataZahra Sdg
 
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"Provectus
 

Ähnlich wie Yandex Maps API (20)

ESRI Dev Meetup: Building Distributed JavaScript Map Widgets
ESRI Dev Meetup: Building Distributed JavaScript Map WidgetsESRI Dev Meetup: Building Distributed JavaScript Map Widgets
ESRI Dev Meetup: Building Distributed JavaScript Map Widgets
 
Pycon2011
Pycon2011Pycon2011
Pycon2011
 
Drupal and the GeoSpatial Web
Drupal and the GeoSpatial WebDrupal and the GeoSpatial Web
Drupal and the GeoSpatial Web
 
The 21st Century Harvard Map
The 21st Century Harvard MapThe 21st Century Harvard Map
The 21st Century Harvard Map
 
3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Pro3D Visualization in ArcGIS Pro
3D Visualization in ArcGIS Pro
 
Google Maps Api
Google Maps ApiGoogle Maps Api
Google Maps Api
 
Google Maps API 101
Google Maps API 101Google Maps API 101
Google Maps API 101
 
CSoft_Terra_UrbanView
CSoft_Terra_UrbanViewCSoft_Terra_UrbanView
CSoft_Terra_UrbanView
 
Web enabling your survey business ppt version
Web enabling your survey business ppt versionWeb enabling your survey business ppt version
Web enabling your survey business ppt version
 
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
 
Esri Map App Builders
Esri Map App BuildersEsri Map App Builders
Esri Map App Builders
 
ArcGIS JavaScript API (build a web layer-based map application with html5 and...
ArcGIS JavaScript API (build a web layer-based map application with html5 and...ArcGIS JavaScript API (build a web layer-based map application with html5 and...
ArcGIS JavaScript API (build a web layer-based map application with html5 and...
 
Hands on with the Google Maps Data API
Hands on with the Google Maps Data APIHands on with the Google Maps Data API
Hands on with the Google Maps Data API
 
HTML5 and CartoDB
HTML5 and CartoDBHTML5 and CartoDB
HTML5 and CartoDB
 
ArcGIS API for Javascript Tutorial
ArcGIS API for Javascript TutorialArcGIS API for Javascript Tutorial
ArcGIS API for Javascript Tutorial
 
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
 
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
Ioannis Doxaras on GIS and Gmaps at 1st GTUG meetup Greece
 
EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)EDIT GeoTools presentation in TDWG 2009 (Montpellier)
EDIT GeoTools presentation in TDWG 2009 (Montpellier)
 
Build with live location data
Build with live location dataBuild with live location data
Build with live location data
 
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
Василевский Илья (Fun-box): "автоматизация браузера при помощи PhantomJS"
 

Mehr von Yandex.Maps

API Яндекс.Карт
API Яндекс.КартAPI Яндекс.Карт
API Яндекс.КартYandex.Maps
 
Народная Яндекс.Карта
Народная Яндекс.КартаНародная Яндекс.Карта
Народная Яндекс.КартаYandex.Maps
 
Народная Яндекс.Карта
Народная Яндекс.КартаНародная Яндекс.Карта
Народная Яндекс.КартаYandex.Maps
 
API Яндекс.Карт. Мастер-класс
API Яндекс.Карт. Мастер-классAPI Яндекс.Карт. Мастер-класс
API Яндекс.Карт. Мастер-классYandex.Maps
 
Яндекс.Карты - помощь
Яндекс.Карты - помощьЯндекс.Карты - помощь
Яндекс.Карты - помощьYandex.Maps
 
API Яндекс.Карт
API Яндекс.КартAPI Яндекс.Карт
API Яндекс.КартYandex.Maps
 

Mehr von Yandex.Maps (7)

404fest
404fest404fest
404fest
 
API Яндекс.Карт
API Яндекс.КартAPI Яндекс.Карт
API Яндекс.Карт
 
Народная Яндекс.Карта
Народная Яндекс.КартаНародная Яндекс.Карта
Народная Яндекс.Карта
 
Народная Яндекс.Карта
Народная Яндекс.КартаНародная Яндекс.Карта
Народная Яндекс.Карта
 
API Яндекс.Карт. Мастер-класс
API Яндекс.Карт. Мастер-классAPI Яндекс.Карт. Мастер-класс
API Яндекс.Карт. Мастер-класс
 
Яндекс.Карты - помощь
Яндекс.Карты - помощьЯндекс.Карты - помощь
Яндекс.Карты - помощь
 
API Яндекс.Карт
API Яндекс.КартAPI Яндекс.Карт
API Яндекс.Карт
 

Kürzlich hochgeladen

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Kürzlich hochgeladen (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Yandex Maps API

  • 1. Yandex Maps API Andrey
Karmatsky karma@yandex‐team.ru
  • 2. Яндекс .Карты Yandex
Maps: – 180
ci8es
of
Russia,
Ukraine
and
other
CIS
countries – World
map
in
Russian – Detailed
satellite
images
for
300
ci8es
  • 3. Яндекс .Карты Map Hybrid Satellite
  • 5. Our toolbox for developers Яндекс API
Я.Карт JavaScript
API Sta$c
API Geocoder Router YMapsML
  • 7. JavaScript API Quick
start Add API script <script src=“http://api-maps.yandex.ru/{version}/key={API- key}”/> Add placeholder for the map <div id=“mapID” style=“width:200px; height:200px;”> Initialize the map var map = new YMaps.Map(YMaps.jQuery(“#mapID”)); map.setCenter( new YMaps.GeoPoint(39.68,47.25), // set center 10, // set zoom YMaps.MapType.MAP // map type ); Example: http://api.yandex.ru/maps/jsapi/examples/mapbasics.html
  • 8. JavaScript API User
interac8on – Built-in functions (dragging map, zooming by double-click, zooming by mouse wheel, right-click area selection, hot keys, ruler) – Standard control elements (search bar, toolbar, map type selector, zoom control, preview map window) – YMaps.IControl – to create your custom controls Example: http://api.yandex.ru/maps/jsapi/examples/mapcontrolsadding.html
  • 9. JavaScript API Objects
on
the
map Placemarks http://api.yandex.ru/maps/jsapi/examples/coordinatesmarkers.html Polylines http://api.yandex.ru/maps/jsapi/examples/mappolylinesediting.html Polygons http://api.yandex.ru/maps/jsapi/examples/mapstylepolygon.html You can customize object styles: placemark icon and shadow image, color and thickness of lines and polygon border, polygon fill color YMaps.IOverlay – to create your custom objects
  • 10. Здесь
нужна
картинка
кальки Static API Embedded map image on your page
  • 11. Stati c API Map
parameters Size Zoom View area Map objects: placemarks, polylines, polygons Example: http://static-maps.yandex.ru/1.x/?l=map&pl=c:8822DDC0,w: 5,37.656577,55.741176,37.656748,55.741419,37.655131,55.741814,37.658257,55.74252 4,37.659811,55.743066,37.659667,55.743233,37.659551,55.743603,37.659775,55.74392 8,37.662398,55.745281&pt=37.656577,55.741176,pmrdm1~37.662398,55.745281,pmblm 2~37.667788,55.732017,pmwtl3&key=ABYQNEkBAAAAgM- ZTwMAK_IKAfJkc-72mWoAq8el6lFmTeEAAAAAAAAAAAChHQgTyECkUqGduyet_fMaeQ 6ckw== More StaticAPI examples: http://api.yandex.ru/maps/staticapi/examples/
  • 12. Geocoder convert an address into geographic coordinates
  • 13. Geocoder – reverse-geocoding – coordinates into address – spell-checking – viewport biasing – language selection – paging
  • 14. Geocoder Geocoder interfaces JavaScript geocoder: – YMaps.Geocoder object in JavaScript API – Search bar control (YMaps.SearchControl) XML-based HTTP-service http://geocode-maps.yandex.ru/1.x/
  • 16. Router YMaps.Router object in JS API – returns – route length and time – detailed driving directions – route geometry (polyline) – now available in Moscow and Ukraine (in «beta»)
  • 17. Thank you Developers forum – http://clubs.ya.ru/mapsapi/ Support – support@api-maps.yandex.ru Documentation – http://api.yandex.ru/maps/doc/ Website – http://api.yandex.ru/maps/ Andrey
Karmatsky karma@yandex‐team.ru

Hinweis der Redaktion

  1. &amp;#x43F;&amp;#x43E;&amp;#x434;&amp;#x43A;&amp;#x43E;&amp;#x440;&amp;#x440;&amp;#x435;&amp;#x43A;&amp;#x442;&amp;#x438;&amp;#x440;&amp;#x43E;&amp;#x432;&amp;#x430;&amp;#x442;&amp;#x44C; &amp;#x43E;&amp;#x43F;&amp;#x440;&amp;#x435;&amp;#x434;&amp;#x435;&amp;#x43B;&amp;#x435;&amp;#x43D;&amp;#x438;&amp;#x435;
  2. &amp;#x437;&amp;#x430;&amp;#x43C;&amp;#x435;&amp;#x43D;&amp;#x438;&amp;#x442;&amp;#x44C; &amp;#x43A;&amp;#x430;&amp;#x440;&amp;#x442;&amp;#x438;&amp;#x43D;&amp;#x43A;&amp;#x443; &amp;#x43D;&amp;#x430; &amp;#x43F;&amp;#x43E;&amp;#x438;&amp;#x441;&amp;#x43A; &amp;#x447;&amp;#x435;&amp;#x433;&amp;#x43E;-&amp;#x442;&amp;#x43E;