Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Google maps: a quick approach (Greek)
1. Decode
{ Ομάδα γραφικού περιβάλλοντος
Google maps API: a quick approach
2. Το Google maps API παρέχει τη λειτουργικότητα
των google maps με γρήγορο και άμεσο τρόπο.
Δημιουργία και εμφάνιση χάρτη.
Εισαγωγή markers, πολυγώνων, popups κλπ.
Event handlers.
Geocoder: Υπηρεσία μετατροπής
συντεταγμένων/διευθύνσεων.
Direction: Σχεδίαση δρομολογίου και οδηγιών.
3. Δημιουργία χάρτη.
var latlng = new google.maps.LatLng( 40.34451, 22.91244 );
var options = {
zoom: 12,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map( $( „div#map‟ )[ 0 ], options );
4. Markers - Popups
var marker = new google.maps.Marker( {
position: latlng,
map: map
} );
var popup = new google.maps.InfoWindow( {
content: “I am a popup window!”,
size: new google.maps.Size( 50, 50 );
} );