j20mc / Nativescript-Danem-Google-Maps-Utils

Nativescript Google-maps-utils android & IOS
The Unlicense
6 stars 6 forks source link

Clear map #4

Open OniQ opened 4 years ago

OniQ commented 4 years ago

Is there is a way to remove all cluster from map? GoogleMapsUtils.clearMap() removes clusters only from visible part of map.

j20mc commented 4 years ago

Hello,

What platform do you use? (ios, android / vue, angular)

For my part, I checked on android / ios with angular no problem.

OniQ commented 4 years ago

Hello,

I use Nativescript Angular on iOS.

j20mc commented 4 years ago

When I zoom in on one of my markers and clean the map, I don't have a larger cluster when I zoom out.

Or does the clusters overlap?

OniQ commented 4 years ago

When I call GoogleMapsUtils.clearMap() marker are removed from visible screen, but when I drag a map I see other markers and clusters.

j20mc commented 4 years ago

I understood the problem. I just realized it. The map is clear but if you zoom in or out the markers / clusters reappear. I'm going to look at how to make sure that doesn't happen.

j20mc commented 4 years ago

The problem coming in my opinion from the SDK, I updated the podfile. Are you able to see if the problem still persists?

OniQ commented 4 years ago

I can't run the project after update. I get the following error now:

[!] CocoaPods could not find compatible versions for pod "Google-Maps-iOS-Utils": In Podfile: Google-Maps-iOS-Utils (~> 3.1.4)

None of your spec sources contain a spec satisfying the dependency: Google-Maps-iOS-Utils (~> 3.1.4).

You have either:

j20mc commented 4 years ago

Hi, you need launch pod repo update or tns platform remove ios & tns build ios in terminal

OniQ commented 4 years ago

Hi. I tried clean install but it didn't help. I get no error only on older version.

j20mc commented 4 years ago

Here is what I had in my terminal during a tns run ios, I made 3 installation with 2 iphone and 1 simulator, all successful :

Installing pods...
Analyzing dependencies
Downloading dependencies
Installing Google-Maps-iOS-Utils 3.1.4 (was 3.0.2)
OniQ commented 4 years ago

I was able to install latest version now. Bet the problem still exists - marker are removed only form visible map area, but are still there when I drag map. I use clusters.

j20mc commented 4 years ago

I really can't understand why the mechanics of google-maps-sdk cannot completely clean the map (for clusters), I thought of an error in the google-maps-utils-iOS SDK but I will have to look elsewhere