Open mukil opened 8 years ago
Two commits in that direction:
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.
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.