title: “Coursera week 2” author: “Umer Ayoub” date: “2/26/2020” output: html_document runtime: shiny resource_files:

First Leaflet Map

Create a leaflet map object.

library(leaflet)
## Warning: package 'leaflet' was built under R version 3.6.2
map <- leaflet() %>% addTiles()

Add the marker to the map and display the map.

map %>%
   addTiles() %>%
   addMarkers(lat=34.2868, lng=74.4624, popup="Sopore Kashmir") %>%
   addMarkers(lat=34.083656,lng=    74.7973, popup="kashmir")
map