mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-30 20:41:08 +00:00
120 lines
2.7 KiB
JSON
120 lines
2.7 KiB
JSON
{
|
|
"javascript/components/MapView.js": {
|
|
"description": "MapView backed by Mapbox Native GL",
|
|
"methods": [
|
|
{
|
|
"name": "onPress",
|
|
"docblock": null,
|
|
"modifiers": [],
|
|
"params": [
|
|
{
|
|
"name": "e",
|
|
"type": null
|
|
}
|
|
],
|
|
"returns": null
|
|
},
|
|
{
|
|
"name": "onLongPress",
|
|
"docblock": null,
|
|
"modifiers": [],
|
|
"params": [
|
|
{
|
|
"name": "e",
|
|
"type": null
|
|
}
|
|
],
|
|
"returns": null
|
|
}
|
|
],
|
|
"props": {
|
|
"animated": {
|
|
"type": {
|
|
"name": "bool"
|
|
},
|
|
"required": false,
|
|
"description": "Animates changes between pitch and bearing",
|
|
"defaultValue": {
|
|
"value": "true",
|
|
"computed": false
|
|
}
|
|
},
|
|
"centerCoordinate": {
|
|
"type": {
|
|
"name": "object"
|
|
},
|
|
"required": false,
|
|
"description": "Initial center coordinate on map",
|
|
"defaultValue": {
|
|
"value": "{\n type: 'Point',\n coordinates: [-77.036086, 38.910233],\n}",
|
|
"computed": false
|
|
}
|
|
},
|
|
"heading": {
|
|
"type": {
|
|
"name": "number"
|
|
},
|
|
"required": false,
|
|
"description": "Initial heading on map",
|
|
"defaultValue": {
|
|
"value": "0",
|
|
"computed": false
|
|
}
|
|
},
|
|
"pitch": {
|
|
"type": {
|
|
"name": "number"
|
|
},
|
|
"required": false,
|
|
"description": "Initial pitch on map",
|
|
"defaultValue": {
|
|
"value": "0",
|
|
"computed": false
|
|
}
|
|
},
|
|
"style": {
|
|
"type": {
|
|
"name": "any"
|
|
},
|
|
"required": false,
|
|
"description": "Style for wrapping React Native View"
|
|
},
|
|
"styleURL": {
|
|
"type": {
|
|
"name": "string"
|
|
},
|
|
"required": false,
|
|
"description": "Style URL for map",
|
|
"defaultValue": {
|
|
"value": "MapView.StyleURL.Street",
|
|
"computed": true
|
|
}
|
|
},
|
|
"zoomLevel": {
|
|
"type": {
|
|
"name": "number"
|
|
},
|
|
"required": false,
|
|
"description": "Initial zoom level of map",
|
|
"defaultValue": {
|
|
"value": "16",
|
|
"computed": false
|
|
}
|
|
},
|
|
"onPress": {
|
|
"type": {
|
|
"name": "func"
|
|
},
|
|
"required": false,
|
|
"description": "Map press listener, gets called when a user presses the map"
|
|
},
|
|
"onLongPress": {
|
|
"type": {
|
|
"name": "func"
|
|
},
|
|
"required": false,
|
|
"description": "Map long press listener, gets called when a user long presses the map"
|
|
}
|
|
}
|
|
}
|
|
} |