Skip to content

Instantly share code, notes, and snippets.

Last active August 1, 2020 15:39
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
personalizando e animando o marcador no mapa / Artigo: API Google Maps V3 -
function initialize() {
// Exibir mapa;
var myLatlng = new google.maps.LatLng(-8.0631495, -34.87131120000004);
var mapOptions = {
zoom: 17,
center: myLatlng,
panControl: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
// Exibir o mapa na div #mapa;
var map = new google.maps.Map(document.getElementById("mapa"), mapOptions);
// Marcador personalizado;
var image = '';
var marcadorPersonalizado = new google.maps.Marker({
position: myLatlng,
map: map,
icon: image,
title: 'Marco Zero - Recife/PE',
animation: google.maps.Animation.DROP
// Função para carregamento assíncrono
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "";
window.onload = loadScript;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment