Giter Site home page Giter Site logo

wandersonalwes / react-native-google-static-map-next Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 10 KB

An <Image/> element with a url to Google Static Map

Home Page: https://www.npmjs.com/package/react-native-google-static-map-next

License: MIT License

TypeScript 100.00%
react-native google-static-maps static-map

react-native-google-static-map-next's Introduction

react-native-google-static-map-next

An <Image/> element with a url to Google Static Map
See Google Static Maps API.

.github/workflows/npm-publish.yml License Languages Contributors


Installation

npm install --save react-native-google-static-map-next

ou

yarn add react-native-google-static-map-next

Usage

import {GoogleStaticMapNext} from 'react-native-google-static-map-next'

function Example() {
  return (
    <GoogleStaticMapNext
      style={styles.staticMap}
      location={{
        latitude: '-33.8688',
        longitude: '151.2195',
      }}
      size={{ width: 400, height: 400 }}
      apiKey="123456789-ABCDFGHIJK"
    />
  );
}

Props

Prop Type Description Default
location Object the map location - { latitude: '-33.8688', longitude: '151.2195' } undefined
size Object the image size - { width: 300, height: 550 } undefined
zoom Number defines the zoom level of the map. 15
scale Number scale=2 returns twice as many pixels as scale=1. 1
format String 'png', 'gif', 'jpg' png
mapType String 'roadmap', 'satellite', 'terrain', 'hybrid'. roadmap
hasCenterMarker Boolean add a marker on the center. true
apiKey String Google API Key undefined
customMarkerUrl String Custom marker url undefined

Issues

Feel free to file a new issue with a respective title and description on the the react-native-google-static-map-next repository. If you already found a solution to your problem, i would love to review your pull request! Have a look at our contribution guidelines to find out about the coding standards.

Contributing

Check out the contributing page to see the best places to file issues, start discussions and begin contributing.

License

This project is under the MIT license.

Author

Foto do Wanderson Alves no GitHub
Wanderson Alves

react-native-google-static-map-next's People

Contributors

wandersonalwes avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.