SlideShare una empresa de Scribd logo
function initialize() {
//declaracion de la variable mapOptions para cargar los atributos del Api de
google que seleccione
var mapOptions = {
center: new google.maps.LatLng(10.002465, -84.039578),
zoom: 8,
mapTypeId: google.maps.MapTypeId.TERRAIN
};
//agregando la capa base y los atributos selecionados al nuevo mapa que se
visualizara en pantalla
//con la variable map
var map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
}
function PintarTriangulo() {
var mapOptions = {
zoom: 5,
center: new google.maps.LatLng(24.774252, -80.190262),
mapTypeId: google.maps.MapTypeId.TERRAIN,
};
var bermudaTriangle;
var map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
// Define the LatLng coordinates for the polygon's path.
var triangleCoords = [
new google.maps.LatLng(25.774252, -80.190262),
new google.maps.LatLng(18.466465, -66.118292),
new google.maps.LatLng(32.321384, -64.75737),
new google.maps.LatLng(25.774252, -80.190262)
];
// Construct the polygon.
bermudaTriangle = new google.maps.Polygon({
paths: triangleCoords,
//color del borde que se dibuja en el mapa
strokeColor: '#14EB35',
//Opaquidad del poligono
strokeOpacity: 0.8,
//gruesor de la linea del poligono
strokeWeight: 5,
//color de fondo azul del poligono
fillColor: '#1B66DF',
fillOpacity: 0.35
});
//seteando el mapa para visualizar el poligono
bermudaTriangle.setMap(map);
}
function PintarSanAgus() {
var mapOptions = {
zoom: 20,
center: new google.maps.LatLng(10.061812, -84.437133),
mapTypeId: google.maps.MapTypeId.TERRAIN,
};
var bermudaTriangle;
var map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
// Define the LatLng coordinates for the polygon's path.
var triangleCoords = [
new google.maps.LatLng(10.061862, -84.436584),
new google.maps.LatLng(10.061305, -84.436983),
new google.maps.LatLng(10.061907, -84.437775),
new google.maps.LatLng(10.062367, -84.437260),
new google.maps.LatLng(10.061862, -84.436584)
];
// Construct the polygon.
bermudaTriangle = new google.maps.Polygon({
paths: triangleCoords,
//color del borde que se dibuja en el mapa
strokeColor: '#14EB35',
//Opaquidad del poligono
strokeOpacity: 0.8,
//gruesor de la linea del poligono
strokeWeight: 5,
//color de fondo azul del poligono
fillColor: '#1B66DF',
fillOpacity: 0.35
});
//seteando el mapa para visualizar el poligono
bermudaTriangle.setMap(map);
}
function AgregarPuntos(latitud, longitud) {
/*alert(latitud);
alert(longitud);
si llega aqui*/
var myLatlng = new google.maps.LatLng(10.028009, -84.089389);// crear la
variable para el centro del mapa coordenadas
var mapOptions = { // variable para la carga de atributos a mostrar en mi
nuevo mapa
zoom: 5,
center: myLatlng,
scaleControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP,
};
//creando la variable map para agregar capa base y sus atributos
var map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
//creando la variable coordenadas de un arreglo para cargar las nuevas
coordenadas
var Coords = [
new google.maps.LatLng(latitud, longitud)
];
//recoriendo el arreglo para cargar la variable marker o marcado posicion de
los puntos del arreglo
for (i in Coords) {
var marker = new google.maps.Marker({ position: Coords[i], title:
"Colegio San AgustÃn Palmares, Costa Rica" });
google.maps.event.addListener(map, 'click', function (event)
{ addMarker(event.latLng); });
//Para añadir cada marcador al mapa, llamar setMap (); este setea el
mapa construido con cada punto.
marker.setMap(map);
}
}
function VerTrianguloBermudas() {//funsion para cargar puntos dados para una
area determinada
var myLatlng = new google.maps.LatLng(24.774252, -80.190262);// crear la
variable para el centro del mapa coordenadas
var mapOptions = { // variable para la carga de atributos a mostrar en mi
nuevo mapa
zoom: 5,
center: myLatlng,
scaleControl: true,
streetViewControl: true,
overviewMapControl: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
//creando la variable map para agregar capa base y sus atributos
var map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
//creando la variable coordenadas de un arreglo para cargar las nuevas
coordenadas
var Coords = [
new google.maps.LatLng(25.774252, -80.190262),
new google.maps.LatLng(18.466465, -66.118292),
new google.maps.LatLng(32.321384, -64.75737),
];
//recoriendo el arreglo para cargar la variable marker o marcado posicion de
los puntos del arreglo
for (i in Coords) {
if (Coords[i] == 25.774252, -80.190262) {
var titles = "Punto 1";
} else if (Coords[i] == 18.466465, -66.118292) {
var titles = "Punto 2";
} else {
var titles = "Punto 3";
}
var marker = new google.maps.Marker({ position: Coords[i], title: titles
});
google.maps.event.addListener(map, 'click', function (event)
{ addMarker(event.latLng); });
//Para añadir cada marcador al mapa, llamar setMap (); este setea el
mapa construido con cada punto.
marker.setMap(map);
}
}

Más contenido relacionado

Último

Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...
Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...
Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...
AMADO SALVADOR
 
Refrigeradores Samsung Modo Test y Forzado
Refrigeradores Samsung Modo Test y ForzadoRefrigeradores Samsung Modo Test y Forzado
Refrigeradores Samsung Modo Test y Forzado
NicandroMartinez2
 
Modo test refrigeradores y codigos de errores 2018 V2.pdf
Modo test refrigeradores y codigos de errores 2018 V2.pdfModo test refrigeradores y codigos de errores 2018 V2.pdf
Modo test refrigeradores y codigos de errores 2018 V2.pdf
ranierglez
 
PLAN DE MANTENMIENTO preventivo de un equipo de computo.pdf
PLAN DE MANTENMIENTO preventivo de un equipo de computo.pdfPLAN DE MANTENMIENTO preventivo de un equipo de computo.pdf
PLAN DE MANTENMIENTO preventivo de un equipo de computo.pdf
70244530
 
Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)
Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)
Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)
AbrahamCastillo42
 
Manual de soporte y mantenimiento de equipo de cómputo
Manual de soporte y mantenimiento de equipo de cómputoManual de soporte y mantenimiento de equipo de cómputo
Manual de soporte y mantenimiento de equipo de cómputo
doctorsoluciones34
 
Manual Web soporte y mantenimiento de equipo de computo
Manual Web soporte y mantenimiento de equipo de computoManual Web soporte y mantenimiento de equipo de computo
Manual Web soporte y mantenimiento de equipo de computo
mantenimientocarbra6
 
EXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDAD
EXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDADEXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDAD
EXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDAD
AngelCristhianMB
 
Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....
Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....
Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....
MiguelAtencio10
 
mantenimiento de chasis y carroceria1.pptx
mantenimiento de chasis y carroceria1.pptxmantenimiento de chasis y carroceria1.pptx
mantenimiento de chasis y carroceria1.pptx
MiguelAtencio10
 
Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)
Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)
Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)
codesiret
 
El uso de las TIC por Cecilia Pozos S..pptx
El uso de las TIC  por Cecilia Pozos S..pptxEl uso de las TIC  por Cecilia Pozos S..pptx
El uso de las TIC por Cecilia Pozos S..pptx
cecypozos703
 
TIC en educacion.rtf.docxlolololololololo
TIC en educacion.rtf.docxlolololololololoTIC en educacion.rtf.docxlolololololololo
TIC en educacion.rtf.docxlolololololololo
KukiiSanchez
 
Programming & Artificial Intelligence ebook.pdf
Programming & Artificial Intelligence ebook.pdfProgramming & Artificial Intelligence ebook.pdf
Programming & Artificial Intelligence ebook.pdf
Manuel Diaz
 
625204013-64-Camino-a-----La-Lectura.pdf
625204013-64-Camino-a-----La-Lectura.pdf625204013-64-Camino-a-----La-Lectura.pdf
625204013-64-Camino-a-----La-Lectura.pdf
yuberpalma
 
El uso de las TIC en la vida cotidiana.pptx
El uso de las TIC en la vida cotidiana.pptxEl uso de las TIC en la vida cotidiana.pptx
El uso de las TIC en la vida cotidiana.pptx
jgvanessa23
 
Manual de Soporte y mantenimiento de equipo de cómputos
Manual de Soporte y mantenimiento de equipo de cómputosManual de Soporte y mantenimiento de equipo de cómputos
Manual de Soporte y mantenimiento de equipo de cómputos
cbtechchihuahua
 
Flows: Mejores Prácticas y Nuevos Features
Flows: Mejores Prácticas y Nuevos FeaturesFlows: Mejores Prácticas y Nuevos Features
Flows: Mejores Prácticas y Nuevos Features
Paola De la Torre
 
Nuevos tiempos, nuevos espacios.docxdsdsad
Nuevos tiempos, nuevos espacios.docxdsdsadNuevos tiempos, nuevos espacios.docxdsdsad
Nuevos tiempos, nuevos espacios.docxdsdsad
larapalaciosmonzon28
 
Inteligencia Artificial
Inteligencia ArtificialInteligencia Artificial
Inteligencia Artificial
YashiraPaye
 

Último (20)

Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...
Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...
Catalogo general tarifas 2024 Vaillant. Amado Salvador Distribuidor Oficial e...
 
Refrigeradores Samsung Modo Test y Forzado
Refrigeradores Samsung Modo Test y ForzadoRefrigeradores Samsung Modo Test y Forzado
Refrigeradores Samsung Modo Test y Forzado
 
Modo test refrigeradores y codigos de errores 2018 V2.pdf
Modo test refrigeradores y codigos de errores 2018 V2.pdfModo test refrigeradores y codigos de errores 2018 V2.pdf
Modo test refrigeradores y codigos de errores 2018 V2.pdf
 
PLAN DE MANTENMIENTO preventivo de un equipo de computo.pdf
PLAN DE MANTENMIENTO preventivo de un equipo de computo.pdfPLAN DE MANTENMIENTO preventivo de un equipo de computo.pdf
PLAN DE MANTENMIENTO preventivo de un equipo de computo.pdf
 
Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)
Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)
Todo sobre la tarjeta de video (Bienvenidos a mi blog personal)
 
Manual de soporte y mantenimiento de equipo de cómputo
Manual de soporte y mantenimiento de equipo de cómputoManual de soporte y mantenimiento de equipo de cómputo
Manual de soporte y mantenimiento de equipo de cómputo
 
Manual Web soporte y mantenimiento de equipo de computo
Manual Web soporte y mantenimiento de equipo de computoManual Web soporte y mantenimiento de equipo de computo
Manual Web soporte y mantenimiento de equipo de computo
 
EXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDAD
EXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDADEXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDAD
EXAMEN DE TOPOGRAFIA RESUELTO-2017 CURSO DE UNIVERSIDAD
 
Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....
Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....
Mantenimiento de sistemas eléctricos y electrónicosarticles-241712_recurso_6....
 
mantenimiento de chasis y carroceria1.pptx
mantenimiento de chasis y carroceria1.pptxmantenimiento de chasis y carroceria1.pptx
mantenimiento de chasis y carroceria1.pptx
 
Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)
Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)
Infografia TCP/IP (Transmission Control Protocol/Internet Protocol)
 
El uso de las TIC por Cecilia Pozos S..pptx
El uso de las TIC  por Cecilia Pozos S..pptxEl uso de las TIC  por Cecilia Pozos S..pptx
El uso de las TIC por Cecilia Pozos S..pptx
 
TIC en educacion.rtf.docxlolololololololo
TIC en educacion.rtf.docxlolololololololoTIC en educacion.rtf.docxlolololololololo
TIC en educacion.rtf.docxlolololololololo
 
Programming & Artificial Intelligence ebook.pdf
Programming & Artificial Intelligence ebook.pdfProgramming & Artificial Intelligence ebook.pdf
Programming & Artificial Intelligence ebook.pdf
 
625204013-64-Camino-a-----La-Lectura.pdf
625204013-64-Camino-a-----La-Lectura.pdf625204013-64-Camino-a-----La-Lectura.pdf
625204013-64-Camino-a-----La-Lectura.pdf
 
El uso de las TIC en la vida cotidiana.pptx
El uso de las TIC en la vida cotidiana.pptxEl uso de las TIC en la vida cotidiana.pptx
El uso de las TIC en la vida cotidiana.pptx
 
Manual de Soporte y mantenimiento de equipo de cómputos
Manual de Soporte y mantenimiento de equipo de cómputosManual de Soporte y mantenimiento de equipo de cómputos
Manual de Soporte y mantenimiento de equipo de cómputos
 
Flows: Mejores Prácticas y Nuevos Features
Flows: Mejores Prácticas y Nuevos FeaturesFlows: Mejores Prácticas y Nuevos Features
Flows: Mejores Prácticas y Nuevos Features
 
Nuevos tiempos, nuevos espacios.docxdsdsad
Nuevos tiempos, nuevos espacios.docxdsdsadNuevos tiempos, nuevos espacios.docxdsdsad
Nuevos tiempos, nuevos espacios.docxdsdsad
 
Inteligencia Artificial
Inteligencia ArtificialInteligencia Artificial
Inteligencia Artificial
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Ejemplos js

  • 1. function initialize() { //declaracion de la variable mapOptions para cargar los atributos del Api de google que seleccione var mapOptions = { center: new google.maps.LatLng(10.002465, -84.039578), zoom: 8, mapTypeId: google.maps.MapTypeId.TERRAIN }; //agregando la capa base y los atributos selecionados al nuevo mapa que se visualizara en pantalla //con la variable map var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); } function PintarTriangulo() { var mapOptions = { zoom: 5, center: new google.maps.LatLng(24.774252, -80.190262), mapTypeId: google.maps.MapTypeId.TERRAIN, }; var bermudaTriangle; var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); // Define the LatLng coordinates for the polygon's path. var triangleCoords = [ new google.maps.LatLng(25.774252, -80.190262), new google.maps.LatLng(18.466465, -66.118292), new google.maps.LatLng(32.321384, -64.75737), new google.maps.LatLng(25.774252, -80.190262) ]; // Construct the polygon. bermudaTriangle = new google.maps.Polygon({ paths: triangleCoords, //color del borde que se dibuja en el mapa strokeColor: '#14EB35', //Opaquidad del poligono strokeOpacity: 0.8, //gruesor de la linea del poligono strokeWeight: 5, //color de fondo azul del poligono fillColor: '#1B66DF', fillOpacity: 0.35 }); //seteando el mapa para visualizar el poligono bermudaTriangle.setMap(map); } function PintarSanAgus() { var mapOptions = { zoom: 20, center: new google.maps.LatLng(10.061812, -84.437133), mapTypeId: google.maps.MapTypeId.TERRAIN, }; var bermudaTriangle; var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); // Define the LatLng coordinates for the polygon's path. var triangleCoords = [ new google.maps.LatLng(10.061862, -84.436584),
  • 2. new google.maps.LatLng(10.061305, -84.436983), new google.maps.LatLng(10.061907, -84.437775), new google.maps.LatLng(10.062367, -84.437260), new google.maps.LatLng(10.061862, -84.436584) ]; // Construct the polygon. bermudaTriangle = new google.maps.Polygon({ paths: triangleCoords, //color del borde que se dibuja en el mapa strokeColor: '#14EB35', //Opaquidad del poligono strokeOpacity: 0.8, //gruesor de la linea del poligono strokeWeight: 5, //color de fondo azul del poligono fillColor: '#1B66DF', fillOpacity: 0.35 }); //seteando el mapa para visualizar el poligono bermudaTriangle.setMap(map); } function AgregarPuntos(latitud, longitud) { /*alert(latitud); alert(longitud); si llega aqui*/ var myLatlng = new google.maps.LatLng(10.028009, -84.089389);// crear la variable para el centro del mapa coordenadas var mapOptions = { // variable para la carga de atributos a mostrar en mi nuevo mapa zoom: 5, center: myLatlng, scaleControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP, }; //creando la variable map para agregar capa base y sus atributos var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); //creando la variable coordenadas de un arreglo para cargar las nuevas coordenadas var Coords = [ new google.maps.LatLng(latitud, longitud) ]; //recoriendo el arreglo para cargar la variable marker o marcado posicion de los puntos del arreglo for (i in Coords) { var marker = new google.maps.Marker({ position: Coords[i], title: "Colegio San AgustÃn Palmares, Costa Rica" }); google.maps.event.addListener(map, 'click', function (event) { addMarker(event.latLng); }); //Para añadir cada marcador al mapa, llamar setMap (); este setea el mapa construido con cada punto. marker.setMap(map); } } function VerTrianguloBermudas() {//funsion para cargar puntos dados para una area determinada var myLatlng = new google.maps.LatLng(24.774252, -80.190262);// crear la variable para el centro del mapa coordenadas var mapOptions = { // variable para la carga de atributos a mostrar en mi nuevo mapa zoom: 5, center: myLatlng, scaleControl: true, streetViewControl: true,
  • 3. overviewMapControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; //creando la variable map para agregar capa base y sus atributos var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); //creando la variable coordenadas de un arreglo para cargar las nuevas coordenadas var Coords = [ new google.maps.LatLng(25.774252, -80.190262), new google.maps.LatLng(18.466465, -66.118292), new google.maps.LatLng(32.321384, -64.75737), ]; //recoriendo el arreglo para cargar la variable marker o marcado posicion de los puntos del arreglo for (i in Coords) { if (Coords[i] == 25.774252, -80.190262) { var titles = "Punto 1"; } else if (Coords[i] == 18.466465, -66.118292) { var titles = "Punto 2"; } else { var titles = "Punto 3"; } var marker = new google.maps.Marker({ position: Coords[i], title: titles }); google.maps.event.addListener(map, 'click', function (event) { addMarker(event.latLng); }); //Para añadir cada marcador al mapa, llamar setMap (); este setea el mapa construido con cada punto. marker.setMap(map); } }