npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-azure-map

v0.1.5

Published

react native component for MS Azure maps cross platform (IOS & Android)

Downloads

80

Readme

react-native-azure-maps

react native component for microsoft azure maps unofficial

Installation

npm install react-native-azure-map

Usage

import { AzureMap } from 'react-native-azure-map';

// ...
<AzureMap apiKey={}  latitude={31.5} longitude={10} zoom={10} >
  <AzureMarker position={} htmlIcon={}></AzureMarker>
</AzureMap>

AzureMap Props

| Prop Name | Type | Required | Default | Description | |---------------|---------|----------|-----------|------------------------------------------------------------------------------------------------------| | latitude | number | Yes | null | The longitude of the map's initial center. | | longitude | number | Yes | null | The latitude of the map's initial center. | | style | object | No | {} | The style object to customize the map container. | | onMapReady | func | No | null | Callback function that is called when the map has finished loading. | | apiKey | string | Yes | null | Azure Maps subscription key required for authenticating API requests. | | zoom | number | No | 7 | The initial zoom level of the map. | | mapStyleMode| string | No | grayscale| The visual style of the map. Can be one of: 'grayscale', 'road', 'satellite', 'night', etc. | | baseUri | string | No | null | The base URI for loading the Azure Maps JavaScript SDK. | | baseCssUri | string | No | null | The base URI for loading the Azure Maps CSS. | | children | node | No | null | Child components such as markers, which can be added to the map. |

AzureMarker Props

| Prop Name | Type | Required | Default | Description | |------------------|------------|----------|-------------|------------------------------------------------------------------------------------------------------| | position | array | Yes | [0, 0] | The [latitude, longitude] array that defines the position of the marker. | | htmlIcon | string | Yes | null | The HTML content that will be displayed inside the marker. | | injectJavaScript | func | Yes | null | A function to inject JavaScript into the WebView to create the marker. | | draggable | boolean | No | false | Determines if the marker can be dragged. | | color | string | No | '#1A73AA' | The primary color of the marker. | | secondaryColor | string | No | 'white' | The secondary color of the marker (e.g., for borders or other elements). | | anchor | string | No | 'bottom' | Determines how the marker is anchored relative to its position. Can be one of 'center', 'left', 'right', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right'. |

Example

<AzureMap apiKey={}  latitude={31.5} longitude={10} zoom={10} >
</AzureMap>

gaza goelocation

Contributing

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

License

MIT