I select marker with content "new marker ". Using event
$scope.onShow = function (e) {
$scope.selectMarker = e.sender.marker;
$scope.markerText = e.sender.marker.options.tooltip.content;
}
then I updated markerText to "Update marker" and click to update
$scope.onUpdateMarker = function () {
if ($scope.selectMarker) {
$scope.selectMarker.options.tooltip.content = $scope.markerText;
$scope.selectMarker.tooltip.options.content = $scope.markerText;
}
};
On the map I see old marker content "new marker ". How change content on map ?
$scope.onShow = function (e) {
$scope.selectMarker = e.sender.marker;
$scope.markerText = e.sender.marker.options.tooltip.content;
}
then I updated markerText to "Update marker" and click to update
$scope.onUpdateMarker = function () {
if ($scope.selectMarker) {
$scope.selectMarker.options.tooltip.content = $scope.markerText;
$scope.selectMarker.tooltip.options.content = $scope.markerText;
}
};
On the map I see old marker content "new marker ". How change content on map ?