Оцените презентацию от 1 до 5 баллов!
Тип файла:
ppt / pptx (powerpoint)
Всего слайдов:
34 слайда
Для класса:
1,2,3,4,5,6,7,8,9,10,11
Размер файла:
2.44 MB
Просмотров:
87
Скачиваний:
3
Автор:
неизвестен
Слайды и текст к этой презентации:
№1 слайд![Lecture Introduction to](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img0.jpg)
Содержание слайда: Lecture 10
Introduction to Google Maps
Senior-Lecturer: Sarsenova Zh.N.
№2 слайд![Introduction . Step Create an](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img1.jpg)
Содержание слайда: Introduction
1. Step: Create an HTML page
2. Step: Add a map with marker
3. Step: Get an API key
https://developers.google.com/maps/documentation/javascript/examples/map-simple
№3 слайд![Google Maps API An API is a](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img2.jpg)
Содержание слайда: Google Maps API
An API is a set of methods and tools that can be used for building software applications.
№4 слайд![The Basic Skeleton of](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img3.jpg)
Содержание слайда: The Basic Skeleton of creating Google Map
№5 слайд![Latitude and Longitude](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img4.jpg)
Содержание слайда: Latitude and Longitude
№6 слайд![The sample code need to](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img5.jpg)
Содержание слайда: The sample code need to create a map with marker
№7 слайд![Google Maps in HTML](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img6.jpg)
Содержание слайда: Google Maps in HTML
№8 слайд![Creating a Basic Google Map](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img7.jpg)
Содержание слайда: Creating a Basic Google Map
№9 слайд![The Map Container The map](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img8.jpg)
Содержание слайда: The Map Container
The map needs an HTML element to hold the map:
<div id="map" style="width:100%;height:500px"></div>
The map will automatically "inherit" its size from its container element.
№10 слайд![The Google Maps API The](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img9.jpg)
Содержание слайда: The Google Maps API
The Google Maps API is a JavaScript library. It is added to the web page with a <script> tag:
<script src="https://maps.googleapis.com/maps/api/js?callback=myMap"></script
The callback parameter specifies the function to be called (=myMap) when the API is ready.
№11 слайд![The myMap Function - myMap](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img10.jpg)
Содержание слайда: The myMap Function
- myMap function initializes and display the map:
the Center- where to center the map
LatLng object to center the map on a specific point.
Pass the coordinates in the order: latitude, longitude.
Zoom-specifies the zoom level for the map.
Zoom:0 shows a map of the Earth fully zoomed out. Higher zoom levels zoom in at a higher resolution.
New google.maps.Map() creates a new Google Maps object.
№12 слайд![Different Map Types](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img11.jpg)
Содержание слайда: Different Map Types
№13 слайд![Google Maps overlays Overlays](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img12.jpg)
Содержание слайда: Google Maps overlays
Overlays are objects on the map that are bound to latitude/longitude coordinates.
Marker- Single locations on a map. Markers can also display custom icon images.
Polyline-Series of straight lines on a map.
Polygon-series of straight lines on a map, and the shape is “closed”
Circle and Rectangle
Info Window – Displays content within a popup balloon on top of a map.
Custom overlays
№14 слайд![Adding a Marker The Marker](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img13.jpg)
Содержание слайда: Adding a Marker
The Marker constructor creates a marker. And The position property must be set for the marker to display.
№15 слайд![Animating the Marker Example](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img14.jpg)
Содержание слайда: Animating the Marker (Example)
The example below shows how to animate the marker with the animation property:
№16 слайд![Icons instead of Marker We](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img15.jpg)
Содержание слайда: Icons instead of Marker
We can specify an image (icon) to use of the default marker
№17 слайд![Polyline A polyline is a line](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img16.jpg)
Содержание слайда: Polyline
A polyline is a line that is drawn through a series of coordinates in an ordered sequence.
A polyline supports the following properties:
№18 слайд![](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img17.jpg)
№19 слайд![Example](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img18.jpg)
Содержание слайда: Example
№20 слайд![Polygon A Polygon is similar](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img19.jpg)
Содержание слайда: Polygon
A Polygon is similar to a Polyline in that it consists of a series of coordinates in an ordered sequence. However, polygons are designed to define regions within a closed loop.
Polygons are made of straight lines, and the shape is “closed” (all the lines connect up).
№21 слайд![](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img20.jpg)
№22 слайд![Polygon Example](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img21.jpg)
Содержание слайда: Polygon Example
№23 слайд![](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img22.jpg)
№24 слайд![Google Maps Circle Example](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img23.jpg)
Содержание слайда: Google Maps – Circle Example
№25 слайд![Google Maps - InfoWindow Show](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img24.jpg)
Содержание слайда: Google Maps - InfoWindow
Show in InfoWindow with some text content for a marker
№26 слайд![Google Maps Events](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img25.jpg)
Содержание слайда: Google Maps Events
№27 слайд![Click the Marker to Zoom We](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img26.jpg)
Содержание слайда: Click the Marker to Zoom
We register for event notifications using the addListener() event handler. That method takes an object, an event to listen for, and a function to call when the specified event occurs.
№28 слайд![Full Example](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img27.jpg)
Содержание слайда: Full Example
№29 слайд![Pan Back to Marker Here, we](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img28.jpg)
Содержание слайда: Pan Back to Marker
Here, we save the zoom changes and pan the map back after 3 seconds:
№30 слайд![Open an InfoWindow When](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img29.jpg)
Содержание слайда: Open an InfoWindow When clicking on the Marker
Click on the marker to show an infowindow with some text:
№31 слайд![Set Markers and Open](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img30.jpg)
Содержание слайда: Set Markers and Open InfoWindow for Each Marker
The placeMarker() function places a marker where the user has clicked, and shows an infowindow with the latitude and longitude of the marker:
№32 слайд![Google Maps Types Google Maps](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img31.jpg)
Содержание слайда: Google Maps Types
Google Maps API supports:
ROADMAP (normal, default 2D map)
SATELLITE (photographic map)
HYBRID (photographic map + road and city names)
TERRAIN (map with mountains, river, etc)
№33 слайд![Types of Google Map The map](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img32.jpg)
Содержание слайда: Types of Google Map
The map type is specified either within the Map properties object, with the mapTypeId property:
Or by calling the map’s setMapTypeId() method:
№34 слайд![Good Luck!!!](/documents_6/dc80c07bc8d6f9675a121ab553320fee/img33.jpg)
Содержание слайда: Good Luck!!!