Skip to content

An Ionic app to showcase Google Maps Javascript API usage

Notifications You must be signed in to change notification settings

cezarmezzalira/ionic-map-lab

Repository files navigation

Ionic Map Lab

In this project, I wanted to show how to implement Google Javascript API in a Ionic Angular application.

This project uses:

  • Ionic 6
  • Angular 13
  • Google Javascript API

I used a boilerplate from ionic start to get menu implementation and router implementation.

How to run this project

First, you need to change the API KEY, modifies the value of variable googleMapsAPIKEY in the file src>environments>enviroment.ts.

To get an API KEY, follow the instructions of this post blog: Devdatic Blog

Now, with your API KEY in place, let's configure the environment of development:

Installing git and curl

sudo apt update && sudo apt install git curl -y

Installing Node Version Manager (nvm)

# Dowload and Install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

# Include variables to PATH
echo -e 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc

# Reload .bashrc with variables
source ~/.bashrc

Install the last LTS version of Node.js

nvm install --lts

Clone this repo

git clone [email protected]:cezarmzz/ionic-map-lab.git

Install Ionic CLI

npm install -g @ionic/cli

Access project folder and install dependencies

cd ionic-map-lab
npm install

Run the project

ionic serve

If all it's ok, you will see a map in Map menu.

About

An Ionic app to showcase Google Maps Javascript API usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages