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

Allow to set initial default key value pairs, prevent from creating new ones... #3

Open
monecchi opened this issue Mar 4, 2022 · 0 comments

Comments

@monecchi
Copy link

monecchi commented Mar 4, 2022

Initial default key/value pairs would be great in order to keep a feature properties organized. Also, an option to prevent from creating new ones beyond those initially set, would allow greater control on many specific use cases.

After creating my own features (polygons, points) on Mapbox Studio, I've set custom properties for each feature such as follows:

"properties": {
    "name": "Place Name",
    "type": "neighborhood",
    "deliveryFee": 3,
    "city": "City Name",
    "active": 1
}

I've developed a MERN Stack app where all the features area now stored on mongodb... I'm able to CRUD and filter features by properties in many ways through a REST API, so in order to keep those properties standard, I'd need to lock a feature properties as mentioned.

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