I am trying to use MapBox JS for creating a customized map with following 3 main features:
- Custom marker image (icon)
- Fly-to Location (slowly or general one either)
- Filtering markers
It seems that feature 1 and 2 does not fall under same JS files. Like they use different version of JS files. Please see links below for your references.
Is there anyone who tried Mapbox and used these 2 different features in one?
I also used noConflict but it does not work that way! I tried finding to create Custom marker using JS & CSS files of version v0.18.0 but it seems it does not take icon like that in the another version (v2.4.0).
Below are the 2 examples of features both uses different version of files.
https://www.mapbox.com/mapbox-gl-js/example/flyto/
https://www.mapbox.com/mapbox.js/example/v1.0.0/custom-marker/
JS and CSS Version files I found:
This is for feature 2 and 3
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.18.0/mapbox-gl.css' rel='stylesheet' />
This is for feature 1 - custom marker.
<script src='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.css' rel='stylesheet' />