System for Data Processing, Storing, and Visualization of fire-affected parcels for Altadena and Palisades Neighborhoods as a result of January 2025 fires in the Los Angeles area.
npm install altadena-expo-mapA React/React Native library for Data Processing, Storing, and Visualization of fire-affected parcels for Altadena and Palisades Neighborhoods as a result of January 2025 fires in the Los Angeles area.
``bash`
npm install altadena-expo-map
`jsx
import { AltadenaMap } from 'altadena-expo-map';
export default function App() {
return (
BASE_SOURCE={yourBaseSource}
MASTER_SOURCE={yourMasterSource}
user={userObject}
/>
);
}
`
`jsx
import { AltadenaMap } from 'altadena-expo-map';
function App() {
return (
BASE_SOURCE={yourBaseSource}
MASTER_SOURCE={yourMasterSource}
user={userObject}
/>
);
}
`
- MAP_TOKEN (string): Your Mapbox access tokenBASE_SOURCE
- (object): Base map data sourceMASTER_SOURCE
- (object): Master map data source user
- (object, optional): User configuration object
`bashInstall dependencies
npm install
Build Output
The library builds to
dist/index.esm.js as an ES module, making it compatible with:
- React Native / Expo applications
- Modern React web applications
- Module bundlers that support ES modulesDependencies
This library has the following peer dependencies:
-
expo >= 48.0.0
- react >= 18.0.0
- react-dom >= 18.0.0
- react-native` >= 0.70.0This project has been migrated from a Vite-based web application to an Expo-compatible library using Rollup. The migration includes:
- ✅ Replaced Vite with Rollup bundler
- ✅ Added TypeScript support
- ✅ Configured for library packaging
- ✅ Made compatible with React Native/Expo
- ✅ Maintained all existing functionality
MIT