All Projects → Azure → react-azure-maps

Azure / react-azure-maps

Licence: MIT license
React Wrapper for azure-maps-control

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-azure-maps

AzureMapsControl.Components
Razor Components for azure-maps-control
Stars: ✭ 13 (-59.37%)
Mutual labels:  azure-maps, azure-maps-control
geojson-editor
A modified version of Googles Simple GeoJSON Editor
Stars: ✭ 43 (+34.38%)
Mutual labels:  maps
Cartoframes
CARTO Python package for data scientists
Stars: ✭ 208 (+550%)
Mutual labels:  maps
Atlas Of Thrones
An interactive "Game of Thrones" map powered by Leaflet, PostGIS, and Redis.
Stars: ✭ 253 (+690.63%)
Mutual labels:  maps
Osm Liberty
A free Mapbox GL basemap style for everyone
Stars: ✭ 231 (+621.88%)
Mutual labels:  maps
Road Orientation Map
A visualization of road orientations on an interactive map
Stars: ✭ 254 (+693.75%)
Mutual labels:  maps
Geoserver
Official GeoServer repository
Stars: ✭ 2,573 (+7940.63%)
Mutual labels:  maps
flatmap.io
🚀 The place where people meet technologies
Stars: ✭ 29 (-9.37%)
Mutual labels:  maps
Problem-Solving
This Repository consists of my solutions💡 in Python 3 to various problems in Data Structures and Algorithms.🎖️
Stars: ✭ 17 (-46.87%)
Mutual labels:  maps
Mapstore2
Modern webmapping with OpenLayers, Leaflet and React
Stars: ✭ 251 (+684.38%)
Mutual labels:  maps
Projects
A list of awesome open source projects Vladimir Agafonkin is involved in.
Stars: ✭ 250 (+681.25%)
Mutual labels:  maps
Gmapsfx
Java API for using Google Maps within a JavaFX application.
Stars: ✭ 233 (+628.13%)
Mutual labels:  maps
echarty
Minimal R/Shiny Interface to ECharts.js
Stars: ✭ 49 (+53.13%)
Mutual labels:  maps
Polyline
Polyline encoder / decoder in swift
Stars: ✭ 224 (+600%)
Mutual labels:  maps
osmscout-sailfish
OSM Scout for Sailfish OS (offline maps and navigation)
Stars: ✭ 42 (+31.25%)
Mutual labels:  maps
Mapbox Plugins Android
Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
Stars: ✭ 208 (+550%)
Mutual labels:  maps
Orderedmap
🔃 An ordered map in Go with amortized O(1) for Set, Get, Delete and Len.
Stars: ✭ 247 (+671.88%)
Mutual labels:  maps
Maps
🌍🌏🌎 The whole world fits inside your cloud!
Stars: ✭ 253 (+690.63%)
Mutual labels:  maps
hslayers-ng
User interface and map building extensions for OpenLayers
Stars: ✭ 29 (-9.37%)
Mutual labels:  maps
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+734.38%)
Mutual labels:  maps

React-Azure-Maps

This project is community-driven initiative originally created by amazing @psrednicki, @msasinowski and @tbajda and is now maintained by the Azure Maps team.

npm npm license

React Azure Maps is a react wrapper for Azure Maps. The whole library is written in typescript and uses React 16.8+

Installation

Use the package manager npm or yarn

npm install react-azure-maps

or

yarn add react-azure-maps

Documentation

Documentation is available Documentation

Generated documentation from typedoc is available Documentation

Compatibility with azure-maps-controls

0.2.0 - 2.0.32
0.1.4 - 2.0.31
0.1.3 - 2.0.25

Playground

React Azure Maps have a fully documented Playground Package that implements a lot of features from Azure Maps Code Samples. If you implement new usage of the map and want to be contributor just create a PR.

Library Implementation Details

For typescript integration and core functionalities, this library uses the newest version of Azure Maps Control. The library is implemented under the hood on Contexts and uses all benefits of new react features, like new context API, hooks, etc. Across the whole library, there are three main references that depend on the basic Azure Maps API

MapReference which is stored and implemented in

AzureMapsProvider

DataSourceReference which is stored and implemented in

AzureMapDataSourceProvider

LayerReference which is stored and implemented in

AzureMapLayerProvider

If you want to directly make some changes in the above refs just use one of these contexts and feel free to use it any way you want. The library implements a lot of ready to use components like AzureMapFeature, AzureMapHTMLMarker, AzureMapPopup

Basic Usage

import React from 'react'
import {AzureMap, AzureMapsProvider, IAzureMapOptions} from 'react-azure-maps'
import {AuthenticationType} from 'azure-maps-control'

const option: IAzureMapOptions = {
    authOptions: {
        authType: AuthenticationType.subscriptionKey,
        subscriptionKey: '' // Your subscription key
    },
}

const DefaultMap: React.FC = () => (
  <AzureMapsProvider>
    <div style={{ height: '300px' }}>
      <AzureMap options={option} />
    </div>
  </AzureMapsProvider>
);

export default DefaultMap

Local development with Playground Package

If you want to do some local development using Playground Package with local link to the package, you need to make the following steps:

- run yarn watch in `react-azure-maps` package
- run yarn link in `react-azure-maps` package
- go to the `azure-maps-playground` or any other folder or repository and run `yarn link "react-azure-maps"`

Code coverage

Alt text

Contributing

Pull requests are welcomed. For major changes, please open an issue first to discuss what you would like to change.

Creators


psrednicki


msasinowski

tbajda

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].