All Projects → realadvisor → Rgm

realadvisor / Rgm

Licence: other
Tiny (1kb less) but very powerful React Google Map

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Rgm

Googlemapview
android google map view - imageView to make the map display process easier by entering latitude and longitude only by static map
Stars: ✭ 36 (-83.71%)
Mutual labels:  google, googlemaps
Covid19 Full Stack Application
Coronavirus - (COVID-19) Full Stack Application
Stars: ✭ 270 (+22.17%)
Mutual labels:  geojson, googlemaps
Google Drive For Mac
A standalone macOS app for Google Docs, Sheets and Slides
Stars: ✭ 202 (-8.6%)
Mutual labels:  google
Shrine Materialdesign2
implementation of Material Design 2 Shrine project
Stars: ✭ 215 (-2.71%)
Mutual labels:  google
Recaptcha
[In]visible ReCaptcha v2 for iOS
Stars: ✭ 208 (-5.88%)
Mutual labels:  google
Login With
Stateless login-with microservice for OAuth
Stars: ✭ 2,301 (+941.18%)
Mutual labels:  google
React Native Google Sign In
React Native Wrapper for Latest Google Sign-In OAuth SDK / API
Stars: ✭ 213 (-3.62%)
Mutual labels:  google
Omni Notes
Open source note-taking application for Android
Stars: ✭ 2,343 (+960.18%)
Mutual labels:  google
Search Engine Parser
Lightweight package to query popular search engines and scrape for result titles, links and descriptions
Stars: ✭ 216 (-2.26%)
Mutual labels:  google
Dc Sdk
DC-SDK 是基于 Cesium 进行二次开发的2、3D一体 WebGis 应用框架,该框架优化了 Cesium 的使用方式和增添了一些额外功能,旨在为开发者快速构建 WebGis 应用。🌎
Stars: ✭ 206 (-6.79%)
Mutual labels:  google
Qgis Latlontools Plugin
QGIS tools to capture and zoom to coordinates using decimal, DMS, WKT, GeoJSON, MGRS, UTM, and Plus Codes notation. Provides external map support, MGRS & Plus Codes conversion and point digitizing tools.
Stars: ✭ 213 (-3.62%)
Mutual labels:  geojson
Bert Chainer
Chainer implementation of "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding"
Stars: ✭ 205 (-7.24%)
Mutual labels:  google
Google Maps Services Js
Node.js client library for Google Maps API Web Services
Stars: ✭ 2,432 (+1000.45%)
Mutual labels:  google
Googleanalyticsr
Use the Google Analytics API from R
Stars: ✭ 213 (-3.62%)
Mutual labels:  google
Googliser
a fast BASH multiple-image downloader
Stars: ✭ 202 (-8.6%)
Mutual labels:  google
Sitemap Generator Cli
Creates an XML-Sitemap by crawling a given site.
Stars: ✭ 214 (-3.17%)
Mutual labels:  google
L7
🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis framework which relies on Mapbox GL or AMap to render basemaps.
Stars: ✭ 2,517 (+1038.91%)
Mutual labels:  geojson
Google Foobar
My Google Foo Bar Challenges 🤓 🧮
Stars: ✭ 202 (-8.6%)
Mutual labels:  google
Django Geojson
django-geojson is a collection of helpers to (de)serialize (Geo)Django objects into GeoJSON.
Stars: ✭ 209 (-5.43%)
Mutual labels:  geojson
Laravel Analytics
A Laravel package to retrieve pageviews and other data from Google Analytics
Stars: ✭ 2,613 (+1082.35%)
Mutual labels:  google

RGM

Tiny 1kb less but very powerful React Google Map.

It allows you to render any React component on the Google Map, and provides easy access to native google map api.

examples, examples source

Example

import { Map, Overlay, Marker } from 'rgm';
...

<Map api={api} options={MAP_OPTIONS}>
  <Overlay debug={debug}>
    <Marker lat={lat} lng={lng}>
      <ReactComponent />
    </Marker>
  </Overlay>
</Map>

Install

yarn add rgm
# or
npm install rgm

API

Map

Draws google map.

properties:

  • api non nullable value of window.google.maps

  • options see MapOptions or (elt:HTMLDivElement) => MapOptions where elt is map holder element.

  • ref exposes instance of google.maps.Map

Overlay

Creates overlay to place React components inside.

properties:

  • debug to control React component placements in dev mode see example

Marker

Wrapper around your component to pass lat, lng into Overlay in a type safe way without touching props of your component.

properties:

  • lat latitude
  • lng longitude

useMap

hook to get access to instances of google.maps.Map and window.google.maps.

returns:

  • { api, map } object, where api is equal to window.google.maps and map is instance of google.maps.Map

Types

Flowtype, Typescript.

For typescript usage you probably need to add @types/googlemaps into your project.

Contribute

Get your api key at Google

Then start dev environment.

GOOGLE_API_KEY=<YOUR GOOGLE API KEY> yarn dev

Why

Why another library having that one of current library authors is also creator of google-map-react

React map libraries along with the ability to draw react on a map are also trying to provide access to google map via declarative API. It needs a lot of hacks, code and opinionated decisions.

We created a library with ability to draw react components on a map providing minimal subset of properties needed to use native api or create any additional declarative api.

Soon will be 1 year as we are happy with it. Small amount of code makes it easy to support and extend.

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