Theo-s-Meta-Capstone / IndoorMaps

https://indoormaps.onrender.com/
1 stars 0 forks source link

Allow Users To upload a photo as reference when using the map builder #32

Open dumax315 opened 1 month ago

dumax315 commented 1 month ago

Resources

`TypeScript const imageUrl = 'https://maps.lib.utexas.edu/maps/historical/newark_nj_1922.jpg'; const errorOverlayUrl = 'https://cdn-icons-png.flaticon.com/512/110/110686.png'; const altText = 'Image of Newark, N.J. in 1922. Source: The University of Texas at Austin, UT Libraries Map Collection.'; const latLngBounds = L.latLngBounds([[37.48521992705674, -122.14801346365132], [37.484779291185326, -122.14652292735413]]);

    const imageOverlay = L.imageOverlay(imageUrl, latLngBounds, {
        opacity: 0.8,
        errorOverlayUrl: errorOverlayUrl,
        alt: altText,
        interactive: true
    }).addTo(map);`
dumax315 commented 1 month ago

https://geoman.io/docs/modes/rotation-mode