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

Assist third party developers with an object containing valid values for 'itemtype' and 'geoprop' #7

Open
mukil opened this issue Sep 12, 2016 · 3 comments
Assignees

Comments

@mukil
Copy link
Owner

mukil commented Sep 12, 2016

If another party wants to integrate this extension into their web mapping application they will need/want to provide some kind of mechanism so users re-use valid schema.org type names. Otherwise major search engines would not now what the web map element is about.

@mukil
Copy link
Owner Author

mukil commented Sep 13, 2016

Two commits in that direction:

@mukil mukil self-assigned this Nov 21, 2016
@mukil
Copy link
Owner Author

mukil commented Feb 1, 2017

The utility API for input validation is:

isValidItemTypeName(userInput); // L.marker(.., { options: { itemtype: "city" } } )
isValidItemTypeProperty(typeName, propertyName);
isValidPlaceProperty(propertyName);

Annotations are just generated if all these methods return true.

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

No branches or pull requests

1 participant