This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString* pinImagePath = [[NSBundle mainBundle] pathForResource:@”pin” ofType:@”png”]; | |
UIImage *pinImage = [[UIImage alloc] initWithContentsOfFile:pinImagePath]; | |
MapPoint *mapPoint = [[[MapPoint alloc] initWithLatitude:-23.6390300 andLongitude:-46.698603] autorelease]; | |
Pin *pin = [[Pin alloc] initWithImage:pinImage andPoint:mapPoint]; | |
[mapTemplate addPin:pin]; | |
[pin release]; | |
[pinImage release]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MapTemplate map; | |
double latitude = -23.5703255; | |
double longitude = -45.6921585; | |
Point point = new Point(latitude, longitude); | |
Pin pin = new Pin(bitmap, point); | |
map.addPin(pin); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MLInformationWindow *informationWindow = [MLInformationWindow instanceAssociatedWith:mapTemplate]; | |
informationWindow.view = infoView; | |
[informationWindow show]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double latitude =-23.6390300 ; | |
double longitude = -46.698603; | |
MLMapPoint *mapPoint = [[[MLMapPoint alloc] initWithLatitude: latitude andLongitude:longitude]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[myMap startMapWithToken:<coloque_seu_token_aqui> onPoint: <ponto_inicial>]; | |
[self.view addSubview:myMap]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MLMapTemplate *myMap = [[MLMapTemplate alloc] initWithFrame:frame]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGRect frame = CGRectMake(0, 0, 320, 480); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double latitude = -23.65465; | |
double longitude = -46.45675; | |
Point point = new Point(latitude, longitude); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view.startMapOn(<coloque_seu_token_aqui>, <ponto_inicial>); |