mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-30 20:41:08 +00:00
Standardize annotation syntax in example
This commit is contained in:
+14
-14
@@ -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'
|
||||
}]
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user