Skip to content

Commit 4ab31dd

Browse files
committed
Updated Mapbox GL URLs
1 parent 3b5f2fc commit 4ab31dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmb2-mapbox.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ function cmb2_mapbox_options_metabox() {
5959

6060

6161
function cmb2_mapbox_scripts() {
62-
wp_enqueue_style( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css', array(), null );
63-
wp_enqueue_script( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js', array(), null );
62+
wp_enqueue_style( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v2.1.0/mapbox-gl.css', array(), null );
63+
wp_enqueue_script( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v2.1.0/mapbox-gl.js', array(), null );
6464
if ( is_admin() ) {
6565
wp_enqueue_style( 'mapbox-gl-draw', 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.2.0/mapbox-gl-draw.css', array(), null );
6666
wp_enqueue_script( 'mapbox-gl-draw', 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.2.0/mapbox-gl-draw.js', array( 'mapbox-gl' ), null );

0 commit comments

Comments
 (0)