Skip to content

Instantly share code, notes, and snippets.

@thulioph
Last active September 11, 2017 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thulioph/8151176 to your computer and use it in GitHub Desktop.
Save thulioph/8151176 to your computer and use it in GitHub Desktop.
modificando os controles do usuário no mapa / Artigo: API Google Maps V3 - blog.thulioph.com
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);
}
// Função para carregamento assíncrono
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.googleapis.com/maps/api/js?key=AIzaSyDeHb17So0QupSGO_d6b8X-OyvJ32UQehs&sensor=true&callback=initialize";
document.body.appendChild(script);
}
window.onload = loadScript;
@xandedj
Copy link

xandedj commented Sep 11, 2017

Boa Tarde Amigo

como consigo estilizar o label do marcador, hoje ele está no meio do marcador, preciso posiciona-lo acima, incluir background e mexer na fonte, pra mostrar fixo as placas dos veículos como posso fazer???

Desde já agradeço.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment