All Projects β†’ leonardomso β†’ react-google-static

leonardomso / react-google-static

Licence: MIT License
🌍 A React wrapper for Google Static Maps API.

Programming Languages

typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-google-static

Load Google Maps Api
🌏 A lightweight Promise-returning helper for loading the Google Maps JavaScript API
Stars: ✭ 166 (+348.65%)
Mutual labels:  google, google-maps, google-maps-api
osm-static-maps
Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
Stars: ✭ 130 (+251.35%)
Mutual labels:  static-maps, static-maps-api
LocationAware
Set alarms for location in map
Stars: ✭ 34 (-8.11%)
Mutual labels:  google-maps, google-maps-api
Firebase-Realtime-Car-Moving-On-JavaScript-Google-Maps
This is the solution for moving realtime cars on Google Maps JavaScript using Google Firebase Realtime Database.
Stars: ✭ 26 (-29.73%)
Mutual labels:  google-maps, google-maps-api
google-maps-services-php
PHP client library(SDK) for Google Maps API Web Services
Stars: ✭ 50 (+35.14%)
Mutual labels:  google-maps, google-maps-api
GoogleMaps-CustomInfoWindow-Button
interactive custom InfoWindow for Google Maps
Stars: ✭ 14 (-62.16%)
Mutual labels:  google-maps, google-maps-api
ReaLocate
ASP.NET MVC 5 Real Estate Application
Stars: ✭ 18 (-51.35%)
Mutual labels:  google-maps, google-maps-api
Google-Maps-API-with-PHP-MySQL
A Snippet of code to help you in Google Maps API. In this Script PHP Array and MySQL is used to store Latitude and Longitude. This script is made for those who needs a Map with Multiple Markers which changes it's Position Dynamically. In other words, This is made for people who need t a Map solution for Uber Like Application
Stars: ✭ 50 (+35.14%)
Mutual labels:  google-maps, google-maps-api
web-maps-wcag-evaluation
Manual accessibility evaluation of popular web map tools.
Stars: ✭ 28 (-24.32%)
Mutual labels:  google-maps, google-maps-api
Geolocator-2
Learn how to find and work with locations in Django, the Yelp API, and Google Maps api.
Stars: ✭ 24 (-35.14%)
Mutual labels:  google-maps, google-maps-api
hopOn
A car rental flutter application using firebase and google maps API
Stars: ✭ 68 (+83.78%)
Mutual labels:  google-maps, google-maps-api
HealthCare-Scan-Nearby-Hospital-Locations
I developed this android application to help beginner developers to know how to use Google Maps API and how to convert JSON data into Java Object.
Stars: ✭ 23 (-37.84%)
Mutual labels:  google-maps, google-maps-api
google maps
πŸ—Ί An unofficial Google Maps Platform client library for the Rust programming language.
Stars: ✭ 40 (+8.11%)
Mutual labels:  google-maps, google-maps-api
jquery-google-reviews
simple jquery Plugin that utilizes Google API to get data from a Place on Google Maps
Stars: ✭ 33 (-10.81%)
Mutual labels:  google-maps, google-maps-api
laravel-5.3-app
πŸ—ΊοΈ Get started with Laravel 5.3, Vue.js and Google Maps API
Stars: ✭ 28 (-24.32%)
Mutual labels:  google-maps, google-maps-api
qualtrics-map
Google Maps integration into Qualtrics.
Stars: ✭ 17 (-54.05%)
Mutual labels:  google-maps, google-maps-api
Placepicker
Free Android Map Place Picker alternative using Geocoder instead of Google APIs
Stars: ✭ 126 (+240.54%)
Mutual labels:  google, google-maps
Cordova Plugin Googlemaps
Google Maps plugin for Cordova
Stars: ✭ 1,647 (+4351.35%)
Mutual labels:  google, google-maps
project sunroof india
Analyzed Google Satellite images to generate a report on individual house rooftop's solar power potential
Stars: ✭ 74 (+100%)
Mutual labels:  google-maps, google-maps-api
IPRadar2
Real-time detection and defense against malicious network activity and policy violations (exploits, port-scanners, advertising, telemetry, state surveillance, etc.)
Stars: ✭ 20 (-45.95%)
Mutual labels:  google-maps, google-maps-api

🌍 React Google Static Maps

Actions Status LICENSE MIT npm version

A React component wrapper to use the Google Static Maps API. Don't forget that to use this API you must have a billing account and an Static Maps API key.

This library supports custom markers. To use a custom icon, you should provide a url link, for example: https://img.icons8.com/dusk/64/000000/marker.png.

Installation

npm install react-google-static
yarn add react-google-static

Usage

import React from 'react';
import GoogleStaticMap from 'react-google-static';

const App = () => (
  <div>
    <h1>Google Static Maps API</h1>

    <GoogleStaticMap
      apiKey={API_KEY}
      latitude={32.064171}
      longitude={34.7748068}
      style={{ width: 200, height: 200 }}
      size={{ width: 200, height: 200 }}
      zoom={16}
    />
  </div>
);

export default App;

Usage with Custom Icon

import React from 'react';
import GoogleStaticMap from 'react-google-static';

const App = () => (
  <div>
    <h1>Google Static Maps API</h1>

    <GoogleStaticMap
      apiKey={API_KEY}
      latitude={32.064171}
      longitude={34.7748068}
      style={{ width: 200, height: 200 }}
      size={{ width: 200, height: 200 }}
      zoom={16}
      iconUrl="https://img.icons8.com/dusk/64/000000/marker.png"
    />
  </div>
);

export default App;

Props

Name Type Required
apiKey Boolean true
latitude string | number true
longitude string | number true
size Object true
zoom number true
scale number false
mapFormat 'png' | 'png32' | 'gif' | 'jpg' | 'jpg-baseline' false
mapType 'roadmap' | 'satellite' | 'terrain' | 'hybrid' false
iconUrl string false
style any false
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].