GoogleApi icon indicating copy to clipboard operation
GoogleApi copied to clipboard

Markers not sending label

Open CaseyBlackburn opened this issue 7 years ago • 4 comments

The label setting for markers does not get sent in the request call, at least not in StaticMaps.

CaseyBlackburn avatar Dec 28 '18 12:12 CaseyBlackburn

Will fix

vivet avatar Dec 28 '18 13:12 vivet

In GoogleApi\Entities\Maps\StaticMaps\Request\StaticMapsRequest.cs I changed line 213 from: var isLabel = string.IsNullOrEmpty(marker.Label) && !(marker.Size == MarkerSize.Tiny || marker.Size == MarkerSize.Small); to: var isLabel = !string.IsNullOrEmpty(marker.Label) && !(marker.Size == MarkerSize.Tiny || marker.Size == MarkerSize.Small);

Seems to correct it.

CaseyBlackburn avatar Dec 28 '18 14:12 CaseyBlackburn

I fixed the missing NOT operator. In general i made the Static Maps and Street View implementation quite quickly, and i never really used it myself. Let me know if you experience more issues.

vivet avatar Dec 29 '18 07:12 vivet

I have published update NuGet. Will close the issue

vivet avatar Dec 29 '18 07:12 vivet