From f5ccea2eddcdcf5eaced0f78e93e9ac0f18c2355 Mon Sep 17 00:00:00 2001 From: Marius Petcu Date: Mon, 4 Jul 2016 00:56:42 +0300 Subject: [PATCH] Standardize annotation syntax in example --- example.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/example.js b/example.js index 1e807c9..e2f57e6 100644 --- a/example.js +++ b/example.js @@ -24,7 +24,7 @@ class MapExample extends Component { userTrackingMode: Mapbox.userTrackingMode.none, annotations: [{ coordinates: [40.72052634, -73.97686958312988], - 'type': 'point', + type: 'point', title: 'This is marker 1', subtitle: 'It has a rightCalloutAccessory too', rightCalloutAccessory: { @@ -40,7 +40,7 @@ class MapExample extends Component { id: 'marker1' }, { coordinates: [40.714541341726175,-74.00579452514648], - 'type': 'point', + type: 'point', title: 'Important!', subtitle: 'Neat, this is a custom annotation image', annotationImage: { @@ -50,19 +50,19 @@ class MapExample extends Component { }, id: 'marker2' }, { - 'coordinates': [[40.76572150042782,-73.99429321289062],[40.743485405490695, -74.00218963623047],[40.728266950429735,-74.00218963623047],[40.728266950429735,-73.99154663085938],[40.73633186448861,-73.98983001708984],[40.74465591168391,-73.98914337158203],[40.749337730454826,-73.9870834350586]], - 'type': 'polyline', - 'strokeColor': '#00FB00', - 'strokeWidth': 4, - 'strokeAlpha': .5, - 'id': 'foobar' + coordinates: [[40.76572150042782,-73.99429321289062],[40.743485405490695, -74.00218963623047],[40.728266950429735,-74.00218963623047],[40.728266950429735,-73.99154663085938],[40.73633186448861,-73.98983001708984],[40.74465591168391,-73.98914337158203],[40.749337730454826,-73.9870834350586]], + type: 'polyline', + strokeColor: '#00FB00', + strokeWidth: 4, + strokeAlpha: .5, + id: 'foobar' }, { - 'coordinates': [[40.749857912194386, -73.96820068359375], [40.741924698522055,-73.9735221862793], [40.735681504432264,-73.97523880004883], [40.7315190495212,-73.97438049316406], [40.729177554196376,-73.97180557250975], [40.72345355209305,-73.97438049316406], [40.719290332250544,-73.97455215454102], [40.71369559554873,-73.97729873657227], [40.71200407096382,-73.97850036621094], [40.71031250340588,-73.98691177368163], [40.71031250340588,-73.99154663085938]], - 'type': 'polygon', - 'fillAlpha':1, - 'strokeColor': '#ffffff', - 'fillColor': '#0000ff', - 'id': 'zap' + coordinates: [[40.749857912194386, -73.96820068359375], [40.741924698522055,-73.9735221862793], [40.735681504432264,-73.97523880004883], [40.7315190495212,-73.97438049316406], [40.729177554196376,-73.97180557250975], [40.72345355209305,-73.97438049316406], [40.719290332250544,-73.97455215454102], [40.71369559554873,-73.97729873657227], [40.71200407096382,-73.97850036621094], [40.71031250340588,-73.98691177368163], [40.71031250340588,-73.99154663085938]], + type: 'polygon', + fillAlpha: 1, + strokeColor: '#ffffff', + fillColor: '#0000ff', + id: 'zap' }] };