Skip to content

Instantly share code, notes, and snippets.

@maplinkapi
Last active August 4, 2017 22:03
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 maplinkapi/5214932 to your computer and use it in GitHub Desktop.
Save maplinkapi/5214932 to your computer and use it in GitHub Desktop.
String token = ...//sua chave de acesso aqui
// Recupera uma instância
InformationWindow informationWindow = InformationWindow.getInstance(map);
// Atribui uma mensagem para ser exibida
informationWindow.setMessage("Minha mensagem");
// Posiciona num ponto específico
informationWindow.setPoint(myPoint);
// Exibe o InformationWindow
informationWindow.show();
// Centraliza o mapa no mesmo ponto que a caixa de informações
map.centerOnPosition(token, myPoint, 16);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment