SanMap | using Google Maps with the map of Grand Theft Auto | Map library
kandi X-RAY | SanMap Summary
kandi X-RAY | SanMap Summary
1) Render map tiles using binaries/TileCutter.exe. 2) Configure SanMap to use these tiles (See index.html).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SanMap
SanMap Key Features
SanMap Examples and Code Snippets
Community Discussions
Trending Discussions on SanMap
QUESTION
i want to make few groups and when i toggle specific i want to make it hidden. I will show you what ive made so far. But this hides everything, and i know why, because this marker.setVisible(true);
the "marker" is global and it is not for specific group, but i dont know how to make it for specific group.
EDIT: Might not work, idk how to include js file...
Javascript
...ANSWER
Answered 2022-Jan-06 at 00:03The problem is that you call setVisible()
method on the same marker each time when you loop in the locations
array. to achieve what you want you need to store the markers objects when you create them, and after, when you need it, access it to delete them.
First, create arrays corresponding to each group you want to create. After that, when you create markers, store them in the array corresponding of his category.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SanMap
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page