All Projects → pavel-corsaghin → react-native-leaflet

pavel-corsaghin / react-native-leaflet

Licence: MIT license
A LeafletView component using WebView and Leaflet map for React Native applications

Programming Languages

HTML
75241 projects
typescript
32286 projects
java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to react-native-leaflet

Leaflet Example
🗺 An example of how to use Leaflet to create an interactive map.
Stars: ✭ 41 (-22.64%)
Mutual labels:  leaflet, leaflet-map
coronavirus-map-dashboard
🦠 Coronavirus (COVID-19) Map Dashboard using coronavirus-tracker-api
Stars: ✭ 41 (-22.64%)
Mutual labels:  leaflet, leaflet-map
gatsby-starter-leaflet
🍃 A Gatsby starter with Leafet to quickly build React apps with a map!
Stars: ✭ 108 (+103.77%)
Mutual labels:  leaflet, leaflet-map
harp-leaflet
Leaflet plugin for harp.gl
Stars: ✭ 16 (-69.81%)
Mutual labels:  leaflet, leaflet-map
georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (+216.98%)
Mutual labels:  leaflet, leaflet-map
positive-office-map
Positive Technologies Office Map
Stars: ✭ 26 (-50.94%)
Mutual labels:  leaflet, leaflet-map
Leaflet Cluster Example
🗺 Example of using the clustering plugin with Leaflet
Stars: ✭ 26 (-50.94%)
Mutual labels:  leaflet, leaflet-map
wp-plugin-trackserver
A WordPress plugin for GPS tracking and publishing
Stars: ✭ 34 (-35.85%)
Mutual labels:  leaflet
leaflet-defaulticon-compatibility
Retrieve all Leaflet Default Icon options from CSS, in particular all icon images URL's, to improve compatibility with bundlers and frameworks that modify URL's in CSS.
Stars: ✭ 71 (+33.96%)
Mutual labels:  leaflet
maptiles
Map tile generator. Converts an image into map tiles using ImageMagick. Map tiles can be used in Google Maps, Leaflet and other map rendering software.
Stars: ✭ 52 (-1.89%)
Mutual labels:  leaflet
Mapstore2
Modern webmapping with OpenLayers, Leaflet and React
Stars: ✭ 251 (+373.58%)
Mutual labels:  leaflet
geogrid.js
Leaflet plugin for Visualizing Discrete Global Grid Systems
Stars: ✭ 37 (-30.19%)
Mutual labels:  leaflet
OoT-Interactive-Map
Interactive Map for the world of Zelda: Ocarina of Time
Stars: ✭ 22 (-58.49%)
Mutual labels:  leaflet
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (-7.55%)
Mutual labels:  leaflet
nagmapReborn
Nagmap Reborn - Standalone integration with some server monitoring systems providing a user-friendly interface through geographic visualization.
Stars: ✭ 19 (-64.15%)
Mutual labels:  leaflet
Atlas Of Thrones
An interactive "Game of Thrones" map powered by Leaflet, PostGIS, and Redis.
Stars: ✭ 253 (+377.36%)
Mutual labels:  leaflet
Leaflet.streetlabels
Display the street labels following polylines for Leaflet
Stars: ✭ 58 (+9.43%)
Mutual labels:  leaflet
Leaflet.TileLayer.Fallback
Replaces missing Tiles by scaled lower zoom Tiles
Stars: ✭ 29 (-45.28%)
Mutual labels:  leaflet
objmap
Breath of the Wild object map
Stars: ✭ 61 (+15.09%)
Mutual labels:  leaflet
leaflet-velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 467 (+781.13%)
Mutual labels:  leaflet

react-native-leaflet

A LeafletView component using WebView and Leaflet map for React Native applications

Notes: This project is replacement for https://github.com/reggie3/react-native-webview-leaflet, which no longer maintain by author and work only with expo.

npm npm npm

Installation

Install using npm or yarn like this:

npm install --save react-native-leaflet-view

or

yarn add react-native-leaflet-view

Usage

import { LatLng, LeafletView } from 'react-native-leaflet-view';

<LeafletView
    // The rest of your props, see the list below
/>

Props

property required type purpose
loadingIndicator optional React.ReactElement custom component displayed while the map is loading
onError optional function Will receive an error event
onLoadEnd optional function Called when map stops loading
onLoadStart optional function Called when the map starts to load
onMessageReceived required function This function receives messages in the form of a WebviewLeafletMessage object from the map
mapLayers optional MapLayer array An array of map layers
mapMarkers optional MapMarker array An array of map markers
mapShapes optional MapShape[] An array of map shapes
mapCenterPosition optional {lat: [Lat], lng: [Lng]} object The center position of the map. This coordinate will not be accurate if the map has been moved manually. However, calling the map's setMapCenterPosition function will cause the map to revert to this location
ownPositionMarker optional Marker A special marker that has an ID of OWN_POSTION_MARKER_ID
zoom optional number Desired zoom value of the map
doDebug optional boolean A flag for debug message logging

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].