Add Properties
You can add properties to your GeoJSON file to describe markers.
-
Add the appropriate properties to your GeoJSON file:
Property Description title The title of the marker. description The description of the marker. color The HTML color of the marker. image The symbol used for the marker. onclick The custom action launched when clicking a marker. onmouseover The custom action launched when the mouse pointer is on the marker. html Displays a custom html content (in a popup) when clicking a marker. tags The custom Tags created for the marker. This property must include the following subproperties: Subproperty Description tagName The W category and tag name for your tag. Include the prefix ds6wbefore the W category and tag name.tagValue The tag value used to filter your markers. You can find an example after the table.
Below is an example using all the properties.
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "color": "#0000ff", "title": "Paris", "description": "France" }, "geometry": { "type": "Point", "coordinates": [ 2.492286, 48.844174 ] } } , { "type": "Feature", "properties": { "color": "#ff0000", "title": "Madrid", "description": "description", "tags":[ { "tagName":"ds6w:where/Location", "tagValue":["Oceania","Australia","Chelsea"] } ] }, "geometry": { "type": "Point", "coordinates": [ -3.688136, 40.312541 ] } } , { "type": "Feature", "properties": { "color": "#ff0000", "title": "London", "description": "United Kingdom", "tags":[ { "tagName":"ds6w:what/Industry", "tagValue":"High Tech" } ] }, "geometry": { "type": "Point", "coordinates": [ -0.324109, 51.554886 ] } } , { "type": "Feature", "properties": { "color": "#ff0000", "title": "Lisboa", "description": "Portugal", "tags":[ { "tagName":"ds6w:who/NumberofUsers", "tagValue":"<100" } ], "geometry": { "type": "Point", "coordinates": [ -9.281809, 38.768028 ] } } ] }Here is another example for the tags properties:
"tags": [ { "tagName":"ds6w:where/location", "tagValue":"Australia" } ]Note: If you need to create a hierarchy, use an array for thetagValue. For example, the sample below:"tags": [ { "tagName":"ds6w:where/Geolocation", "tagValue":["NORTH AMERICA","United States","Houston"] } ]Creates the following structure in Tags:
- Save the GeoJSON file.