From e6cb2be8fade91aa9a048a5991c1c605d6372f65 Mon Sep 17 00:00:00 2001 From: Bharata Srinivasa Date: Wed, 20 Jul 2016 16:47:40 +0530 Subject: [PATCH] Added mapbox street style and varied code position --- index.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 4492c3d..494913c 100644 --- a/index.html +++ b/index.html @@ -25,21 +25,23 @@ mapboxgl.accessToken = 'pk.eyJ1IjoiYnNyaW5pdmFzYSIsImEiOiJjaXFuazk0ZHAwMWEzZnBubjgxY2FlbnU1In0.XqV5rLG4cToITHlk9Q3oSA'; var map = new mapboxgl.Map({ container: 'map', // container id - style: 'mapbox://styles/bsrinivasa/ciqrx4gy70019bkncwbjvfe5m', //stylesheet location + style: 'mapbox://styles/mapbox/streets-v9', //stylesheet location center: [76.9398,13.3118], // starting position zoom: 14, // starting zoom hash: true }) +var popup = new mapboxgl.Popup({closeOnClick: false}) + .setLngLat([-96, 37.8]) + .setHTML('

Welcome to Gubbi!

Welcome to Gubbi!