TransforMap / transformap.github.io

http://transformap.co/
GNU General Public License v2.0
4 stars 2 forks source link

Underscore cannot parse ":" in JSON data #26

Open keikreutler opened 8 years ago

keikreutler commented 8 years ago

Unexpected token error when the underscore/ backbone template error tries to parse 'properties.addr:city.'

species commented 8 years ago

For properties with ":" in the key, use the following syntax: properties["addr:city"].

If this is an error in underscore-js, it should be reported here in the projects issue tracker.

keikreutler commented 8 years ago

Within the underscore template, difficulty displaying the non-english description of an initiative in a popup - using the properties["descripton:XX"] key wherein XX is a two letter code for the language.