Closed kaddyadriano closed 3 years ago
Please explain the steps how to reproduce your issue
Please explain the steps how to reproduce your issue
I get the error when adding a marker to the map. I have updated the post/comment with a code snippet. I haven't figure out what the issue is. Your help will be appreciated!
svg is not supported
Please try without icon
let markerOptions = {
position: {
lat: Number(marker.Latitude),
lng: Number(marker.Longitude)
},
title: marker.LabelText
};
I have tried without it but still getting the same error. here is my console output
Could share your project files on GitHub? I don't mind public or private. I can't figure out without your code.
I created a sample project and the map worked there so I figured the map obj this.map
was being tampered with somehow. I finally got it to work. Thanks for your looking into this!
Question: Is there a way to add a marker label (label on icon) like google maps js does. something like
let makerOptions: {icon:.., title:.., label: "My Label"}
?
I'm submitting a ... (check one with "x")
OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)Current behavior:
Throws an error when adding a marker to map
Expected behavior:
Add a marker to map
Related code, data or error log (please format your code or data): I have tried to use the sample you have on here but the following error was thrown still
Here is part of may code: