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

@gps-saas/codeartisan-react-native-leaflet-traccar

v1.0.12

Published

Codeartisan React Native Leaflet Traccar is an improvement of @netizen-teknologi/react-native-maps-leaflet, bringing powerful, interactive maps to React Native Traccar Custom apps with Leaflet. Ideal for real estate, travel, delivery tracking, and logisti

Downloads

570

Readme

codeArtisan-react-native-leaflet-traccar

Codeartisan React Native Leaflet Traccar React is an improvement of @netizen-teknologi/react-native-maps-leaflet which brings powerful, interactive maps to your React Native Traccar Custom app using Leaflet. Add custom markers, popups, and tile layers. Perfect for real estate, travel, delivery tracking, and logistics. Compatible with iOS and Android, it provides a seamless and dynamic map experience.

For support:

Whatsapp: +5511934251920 Email: [email protected]

CodeArtisan React Native Leaflet Traccar 🌍

CodeArtisan React Native Leaflet Traccar is an improvement of @netizen-teknologi/react-native-maps-leaflet which brings the power of the popular Leaflet JavaScript library to React Native. Whether you're building a delivery app, a location-based service, or a data visualization tool, you can easily add interactive maps with custom markers, tile layers, and more!

Installation 📦

Start a new expo project

npx create-expo-app@latest mobile-tracker --template blank

Install CodeArtisan React Native Leaflet Traccar, simply run the following command:

npm install @gps-saas/codeartisan-react-native-leaflet-traccar

install dependencies

npx expo install [email protected]
npx expo install expo-status-bar

Sample code to load the map...

import { SafeAreaView } from "react-native";
import { MapView } from "@gps-saas/codeartisan-react-native-leaflet-traccar";
import { StatusBar } from "expo-status-bar";

export default function App() {
  return (
    <SafeAreaView
      style={{
        flex: 1,
      }}
    >
      <MapView
        style={{
          width: "100%",
          height: "100%",
        }}
        mapOptions={{
          zoomControl: false,
        }}
        mapOnClick={(data) => {
          console.log("map on click", data);
        }}
        showMarkerClicked
      />
      <StatusBar style="dark" />
    </SafeAreaView>
  );
}

As we are using native modules, we need to build and install a development build, so:

rm -rf node_modules ios android
npx expo prebuild
npx eas build --profile development --platform android
yarn start

Create a resources folder and move your icons to that folder and load this icons on your app

import bicycle from "./resources/newIcons/bicycle.png";
import boat from "./resources/newIcons/boat.png";
import bus from "./resources/newIcons/bus.png";
import car from "./resources/newIcons/car.png";
import camper from "./resources/newIcons/camper.png";
import crane from "./resources/newIcons/crane.png";
import helicopter from "./resources/newIcons/helicopter.png";
import motorcycle from "./resources/newIcons/motorcycle.png";
import offroad from "./resources/newIcons/offroad.png";
import person from "./resources/newIcons/person.png";
import pickup from "./resources/newIcons/pickup.png";
import plane from "./resources/newIcons/plane.png";
import scooter from "./resources/newIcons/scooter.png";
import ship from "./resources/newIcons/ship.png";
import tractor from "./resources/newIcons/tractor.png";
import train from "./resources/newIcons/train.png";
import tram from "./resources/newIcons/tram.png";
import trolleybus from "./resources/newIcons/trolleybus.png";
import truck from "./resources/newIcons/truck.png";
import van from "./resources/newIcons/van.png";
import default from "./resources/newIcons/default.png";
import animal from "./resources/newIcons/animal.png";

Install that apk on your android device and point to your expo server.

Changelog

  1. Add Support for web browser;

Features 🎯

React Native Maps Leaflet offers a range of features to help developers create powerful mapping applications with ease:

  1. Interactive Maps: Utilize Leaflet's interactivity to add maps that support panning, zooming, and dragging.
  2. Custom Markers: Add custom markers to represent locations on the map with your own icons or images.
  3. Popups and Tooltips: Attach popups or tooltips to your markers to display additional information on user interaction.
  4. Cross-Platform Compatibility: Fully compatible with both Web, iOS, and Android devices.
  5. Map Event Handlers: Capture various events like onClick, onMove, and onMoveEnd to implement custom interactions.
  6. Lightweight and Performant: Designed to be fast and responsive, ensuring a smooth user experience even on lower-end devices.
  7. Add custom params: As Traccar is a very rich application, in most cases you'll need to customize leaflet.

These features make CodeArtisan React Native Leaflet Traccar a powerful tool for building interactive mapping applications tailored to your specific needs.