-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markerclusterer: Property 'radius' does not exist on type 'SuperClusterViewportOptions'. #724
Comments
If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.@adamperea Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
It also happens to me in a project with Angular 15, TypeScript 4.9.4. |
The same happens in my project. |
Can someone provide a minimal reproducible example? Does this only happen in combination with angular? |
for me it is the same thing. but not sure that this has anything todo with angular (at least from first sight, this seems to be pure typescript) for example: that also fails for me because SuperClusterViewportOptions has through 2 interfaces 2 properties.. viewportPadding because of ViewportAlgorithmOptions and maxZoom because of AlgorithmOptions interfaces not sure what this interface: export type SuperClusterOptions = SuperCluster.Options<{ really does.. const y: SuperClusterOptions = {maxZoom, radix, viewportPadding}; but not that the completion if "y" then gives me anything.. So not sure what should be happening here.. should it be because of SuperClusterViewportOptions is also a SuperClusterOptions it should just allow everything? but it doesn't seem to do that because it also implements another interface that only defined 2 option properties (through its interface inheritance chain) |
this is just weird.. i will try to make my sample smaller but "a" is correct "radius" is not part of that because ViewportAlgorithmOptions doesn't have that "b" is weird that it doesn't complain on anything because "b" should just be "d" which is the same type but then directly in code, and in "d" you see that it only accepts maxZoom and radius because supercluster.Options has those And "c" is just the combination of the types of "a" and "b" (and b being kind of "d" type) so you would expect that "c" would allow what "a" and "b" gives you but it doesn't it only seems to be the same as "a" So 2 things: 1> why isn't "b" complaining the same as "d" because they should be effectively be the same. 2> why is "c" not a combination of "a" and "b" (or "d") and accepts it all properties that are in that combination.. |
Same error. It's occuring on import. |
this is very weird and i dont know which setting it is exactly root package.json file
in a "src" sub dir i have this test.ts:
then the errors are correct it generates errors where it should be and there are no errors where it shouldn't be. then i just drop 1 empty file besides the package.json: tsconfig.json which just {} inside it and right away it goes wrong... So it seems that suddenly even without nothing in the tsconfig.json file there are different kind of defaults that are causing this or some other thing that i don;t understand yet. The thing is that all angular applications do have tsconfig.json files... |
I literally removed this radius from the file '@googlemaps\markerclusterer\dist\algorithms\superviewport.d.ts', where it is called, on line 37, and it worked, I don't even want to know what happens now. |
@Guilherme-Bodart You likely just created a black hole that will devour all of humanity, right before Halloween. Good job! :) |
I went back to version 2.3.2, and it worked, if one day it works again from version 2.4.0+, someone please let me know 😊 |
I have the same problem 😢 |
2.5.1 still broken. I reverted to 2.3.2 as @Guilherme-Bodart suggested and will also stay there until this is fixed. |
can you help me provide your related versions,I reverted to 2.3.2 but still failed; thank you! @Guilherme-Bodart |
"@angular/cli": "^16.2.0", My versions Angular-cli and Google things I use, the error that happens on yours after updating still about radius? i'm brazilian guy using translate 😊 |
Meant to resolve issues googlemaps#724, googlemaps#803
I reverted to 2.3.2 and it works for me also |
Hello,
I have this error since the last update:
Error: node_modules/@googlemaps/markerclusterer/dist/algorithms/superviewport.d.ts:37:28 - error TS2339: Property 'radius' does not exist on type 'SuperClusterViewportOptions'. 37 constructor({ maxZoom, radius, viewportPadding, ...options }: SuperClusterViewportOptions);
.My packages versions are:
I am using Angular 16.2.0 with typescript 5.1.6. The only place where I am using something from this class is there:
new MarkerClusterer({ map: this.map, algorithm: new SuperClusterAlgorithm({ minPoints: 6 }), });
Could you help me, please?
The text was updated successfully, but these errors were encountered: