Crear contenedor Mapa
contenedor <- leaflet()
contenedor
Mapa Base
mapa_base <- leaflet() %>%
addTiles()
mapa_base
Marcador - Circulo - Zoom
# Fortaleza del Real Felipe -12.062225308779134, -77.14879200320455
real_felipe <- leaflet() %>%
addTiles() %>%
setView(lat=-12.062225308779134,lng=-77.14879200320455,zoom=16) %>%
addMarkers(lat=-12.062225308779134,lng=-77.14879200320455,popup = "<b>Fortaleza del Real Felipe</b>") %>%
addCircleMarkers(lat=-12.062225308779134,lng=-77.14879200320455,color = "orange",radius=30)
real_felipe
Configurar Marcador
icon_felipe <- awesomeIcons(
icon="fire",
iconColor = "blue",
markerColor = "purple",
library = "fa"
)
real_felipe <- leaflet() %>%
addTiles() %>%
setView(lat=-12.062225308779134,lng=-77.14879200320455,zoom=16) %>%
addAwesomeMarkers(lat=-12.062225308779134,lng=-77.14879200320455,icon=icon_felipe,popup = "<b>Fortaleza del Real Felipe</b>") %>%
addCircleMarkers(lat=-12.062225308779134,lng=-77.14879200320455,color = "orange",radius=30)
real_felipe
LS0tDQp0aXRsZTogIk1hcGFzIEludGVyYWN0aXZvcyBlbiBSIg0KYXV0aG9yOiAiUmVuem8gQ8OhY2VyZXMgUm9zc2kiDQpkYXRlOiAiMjAyMi8wMi8yNiINCnN1YnRpdGxlOiBMZWFmbGV0IC0gUk1hcmtkb3duDQpvdXRwdXQ6DQogIGh0bWxfZG9jdW1lbnQ6DQogICAgdG9jOiBUUlVFDQogICAgdG9jX2Zsb2F0OiBUUlVFDQogICAgdGhlbWU6IGpvdXJuYWwNCiAgICBjb2RlX2Rvd25sb2FkOiBUUlVFDQotLS0NCg0KPCEtLSBDcmVhciBNYXBhcyBJbnRlcmFjdGl2b3MgZW4gUiBoYWNpZW5kbyB1c28gZGVsIHBhcXVldGUgTGVhZmxldCAtLT4NCg0KPCEtLSBFbCBzaWd1aWVudGUgY8OzZGlnbyBDU1MgcGVybWl0ZSBjZW50cmFyIGxvcyBtYXBhcyBlbiBlbCBkb2N1bWVudG8g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