All Projects → BrunoAlencar → ionic3-google-maps-examples

BrunoAlencar / ionic3-google-maps-examples

Licence: MIT License
Some examples of how to use google maps javascript API on a Ionic application and use HTML5 geolocation.

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ionic3-google-maps-examples

ionic3-image-handling
In this ionic tutorial you will learn how to access the image gallery and take pictures from an ionic app. Also we will show you how to add a image cropper. This ionic tutorial includes a working ionic app example you can reuse for your needs.
Stars: ✭ 35 (+45.83%)
Mutual labels:  ionic-framework, ionic2-examples, ionic3
ionic3
This repository contains complete source code for Ionic 3 tutorial from https://ampersandacademy.com/tutorials/ionic-framework-3. I will try many Ionic 3 specific scripts and will write them as separate tutorial. You can follow this repo to get more tested and working script for the Ionic 3.
Stars: ✭ 21 (-12.5%)
Mutual labels:  ionic-framework, ionic2-examples, ionic3
ionic-socialsharing-with-deeplinking-example
Ionic Social Sharing and Deep Linking example app. Complete Ionic Tutorial with free example app! Built for Ionic 3.
Stars: ✭ 16 (-33.33%)
Mutual labels:  ionic-framework, ionic2-examples, ionic3
ionic4-angular6-crud-example
Building CRUD Mobile App using Ionic 4, Angular 6 and Cordova
Stars: ✭ 50 (+108.33%)
Mutual labels:  ionic-framework, ionic3
ionic-hockeyapp
Need HockeyApp in your Ionic application, add this package!
Stars: ✭ 19 (-20.83%)
Mutual labels:  ionic-framework, ionic3
ionic3-start-theme
Ionic 3 Start Theme with 10 Pages, mock data, providers samples, Storage, Http and more...
Stars: ✭ 130 (+441.67%)
Mutual labels:  ionic-framework, ionic3
ionic-native-sms-retriever-plugin-master
Cross-platform plugin for Cordova / PhoneGap to Retrieve SMS. Available for Android.
Stars: ✭ 16 (-33.33%)
Mutual labels:  ionic-framework, ionic3
jquery.geocomplete
A simple plugin for Google Maps Autocomplete.
Stars: ✭ 15 (-37.5%)
Mutual labels:  google-maps, google-maps-javascript
ionic-app-with-aws-cognito
Angular 4, Ionic 3, and AWS (Amazon) Cognito User Pools. Authentication out of the box.
Stars: ✭ 62 (+158.33%)
Mutual labels:  ionic-framework, ionic3
ionic-3-video-calling-using-webrtc
This is demo code of how to implement video calling in ionic 3 using webrtc
Stars: ✭ 58 (+141.67%)
Mutual labels:  ionic-framework, ionic3
ionic-workflow-guide
Create a full and powerful worflow with Ionic (Unit Testing, Environment variables, Automatic documentation, Production App Server, Automatic deployment)
Stars: ✭ 46 (+91.67%)
Mutual labels:  ionic-framework, ionic3
ionic-uber-clone
Ionic 4 Taxi Booking script
Stars: ✭ 34 (+41.67%)
Mutual labels:  ionic-framework, ionic3
ionic-login-component
Free sample of Premium Ionic Login Component
Stars: ✭ 17 (-29.17%)
Mutual labels:  ionic-framework, ionic3
trackanimation
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.
Stars: ✭ 74 (+208.33%)
Mutual labels:  google-maps, geolocation
svelte-googlemaps
Svelte Google Maps Components
Stars: ✭ 62 (+158.33%)
Mutual labels:  google-maps, geolocation
Geolocator-2
Learn how to find and work with locations in Django, the Yelp API, and Google Maps api.
Stars: ✭ 24 (+0%)
Mutual labels:  google-maps, geolocation
todo-list
TodoList using Ionic2/3 & Firebase: * PWA * SSO Google plus. * Share list via QRcode. * Upload image from Camera or Storage. * Speech Recognition.
Stars: ✭ 18 (-25%)
Mutual labels:  ionic-framework, ionic3
geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (+16.67%)
Mutual labels:  google-maps, geolocation
ionicfirebaseauth
Exemplo de alguns tipos de autenticação com Ionic 2 e Firebase
Stars: ✭ 18 (-25%)
Mutual labels:  ionic-framework, ionic3
fireblogger
Ionic 2 social media microblogging platform built with firebase 3 as backend
Stars: ✭ 54 (+125%)
Mutual labels:  ionic-framework, ionic3

Ionic 3 examples of using Google Maps API

Some examples of how to use google maps javascript API on a Ionic application and use HTML5 geolocation.

alt text

Starting

  1. First you need to visit the google maps javascript API (https://developers.google.com/maps/documentation/javascript/) then get your key.
  2. Second you need the api in your src/index.html, this https://maps.googleapis.com/maps/api/js?key=YOUR-KEY-HERE.

Using Google Maps Javascript API

  1. First example:
  • On the html page i just put this div:
<div #map id="map"></div>
  • Some css
 #map {
        height: 100%;
 }
  • On typescript step, i have to do something first. Declare a google variable.
 declare const google;
  • Then i can use it.
 @ViewChild('map') mapElement: ElementRef;
 map: any;

ionViewDidLoad() {
    let posMaceio = { lat: -9.648139, lng: -35.717239 }
    this.map = new google.maps.Map(this.mapElement.nativeElement, {
        zoom: 8,
        center: posMaceio,
        mapTypeId: 'roadmap'
    });
    this.map.setCenter(posMaceio);
}
  • I hope you enjoyed the first example

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].