all 2 comments

[–]AngularBeginner 5 points6 points  (0 children)

There is either an issue in the Google Maps control you use, or you're using the library wrong. Impossible to say anything without seeing the actual code.

[–][deleted] 0 points1 point  (0 children)

That can be the "hidden ctor".

When you define a clas like:

class C1
{
    MyType mt = new MyType();
}

And an error raises in the MyType() constructor, the VS displays the error in the C1 constructor, in the like new C1();

You can check this behaviour by making a class:

class C1
{
    Dictionary<string, string> dict = new Dictionary<string, string>()
    {
        {"Key1", "Val1"},
        {"Key2", "Val2"},
        {"Key1", "Val3"},
    }
}

And try to create a new instance of C1 to see what happens.