Skip to content
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

MapColor.FromName() allows unrecognized colors to be entered #162

Open
MaximillianC opened this issue Apr 15, 2020 · 0 comments
Open

MapColor.FromName() allows unrecognized colors to be entered #162

MaximillianC opened this issue Apr 15, 2020 · 0 comments

Comments

@MaximillianC
Copy link

Per the following, the static maps API only accepts 10 different named colors. The MapColor.FromName() method allows you to enter any color name string, and the parameter name (cssColor) is a bit misleading, as not all CSS colors are acceptable. I suggest using an enum for this, instead.

color: (optional) specifies a 24-bit color (example: color=0xFFFFCC) or a predefined color from the set {black, brown, green, purple, yellow, blue, gray, orange, red, white}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant