Hi, this might be a quick fix, but I can't seem to get rid of the Boston marker on my Leaflet map?
I have an extremely basic map, with a list and markers placed on the list. All the markers load correctly, except that there is always a random Boston marker visible as well.
Thanks for trying to help, I figured it out, in case other people have the same issue.
My list of markers I fed to the component had an empty value, which seems to be replaced by the Boston location then. As soon as I removed that empty value from my marker list, the Boston marker disappeared.
Heh, brilliant :). Glad you found the cause!
Hey! How did you remove it? Mine is on read-only...
Thank you!
Hi Marianig,
All my markers are added to a list I get from a database, this is the list used on the map component. From your image, you can see the "column" default being that location, so just make sure your list doesn't contain empty location information... in my case, I just simply removed it during my list-population routine.
Hope it helps.
Regards
I'm sorry I didn't understand. Can you maybe show pictures that explain better. Thank you for your patience.
It is really basic. Here is my image, where the filter just excludes all the empty location markers. This is then used in the map.
My locations can be on the same markers, so I also just remove duplicates from it first.
Well, OutSystems is located in Boston, so... :)
Joking aside, did you try an anonymous browser session to see if the marker still appears? And what if you don't place any markers yourself? Because sometimes Google Maps likes to place markers of things it thinks you'd like.
Hi,
I'm pretty sure not a single developer, unless you work for outsystems, will want to place a marker on the outsystems offices :p
I'm not using google maps, I'm using the leaflet component. Accessing it in a private window doesn't make a difference. I also added "0,0" as the "center", basically overriding the default, but it still places the Boston marker. I also added a zoom and location, and still the marker is there.
I only know the OutSystems Maps component, I don't know "OutSystems Maps Leaflet". There are several Leaflet components in the Forge, but they seem to work on top of OutSystems Maps?