@up
Trzymaj adres tego API na serwerze, pod znanym urlem.
//keeping the event handler in a seperate function in order to handle 'key' within for loop correctly.
private _addClickEventToMarker(aKey: string) {
//using typescript 'fat arrow' syntax (lambda syntax) in order to preserve scope of 'this' in click event handler
google.maps.event.addListener(this.markers[aKey], 'click', () => this._handleClickEventOnMarker(aKey));
}
//keeping the event handler in a seperate function in order to handle 'key' within for loop correctly.
MapLocation.prototype._addClickEventToMarker = function (aKey) {
var _this = this;
//using typescript 'fat arrow' syntax (lambda syntax) in order to preserve scope of 'this' in click event handler
google.maps.event.addListener(this.markers[aKey], 'click', function () {
return _this._handleClickEventOnMarker(aKey);
});
};
Ostatnio zmieniony przez Haan : 17-04-2014, 12:32
ipse se nihil scire id unum sciat
ipse se nihil scire id unum sciat
Problem z komputerem? Instrukcja diagnostyczna
Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat."Don't worry, I'm just a pervert"Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
Problem z komputerem? Instrukcja diagnostyczna
Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat."Don't worry, I'm just a pervert"Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
Dreaming by drumming. ™
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki