migrated from googlemaps to mapbox

I just migrated my website (https://mruanova.com) from Google Maps to Mapbox. In the process I found that Mapbox.js is now obsolete since they released the new Mapbox-GL-JS a month ago (July 2019, see here: https://github.com/mapbox/mapbox-gl-js/releases).

Mapbox.js (syntax: var map = L.mapbox.map)

  • No longer in active development.
  • Supports raster tiles.
  • Tiles are generated by the server.
  • Map styles can’t be changed in the browser, but map overlays can be styled dynamically.

Mapbox GL JS (syntax var map = new mapboxgl.Map)

  • In active development — we are adding new features, improving existing features, and fixing bugs.
  • Supports vector tiles.
  • Maps are rendered client-side by the browser.
  • Map data and styles can be changed dynamically.

Source: https://docs.mapbox.com/help/troubleshooting/transition-from-mapbox-js-to-mapbox-gl-js/

Image for post
Image for post
Visit my personal website: https://mruanova.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store