Skip to content

Commit 8740cd0

Browse files
Configure atlas to use browser's preferred language (Accept-Language) for map tiles.
1 parent 5709c8a commit 8740cd0

264 files changed

Lines changed: 280 additions & 6 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Samples/Animations/Animate a GPS trace/Animate a GPS trace.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
//Initialize a map instance.
7676
map = new atlas.Map('myMap', {
7777
view: 'Auto',
78+
language: 'Auto',
7879

7980
//Add authentication details for connecting to Azure Maps.
8081
authOptions: {

‎Samples/Animations/Animate a Line/Animate a Line.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
//Initialize a map instance.
3131
map = new atlas.Map('myMap', {
3232
view: 'Auto',
33+
language: 'Auto',
3334

3435
//Add authentication details for connecting to Azure Maps.
3536
authOptions: {

‎Samples/Animations/Animate a choropleth map/Animate a choropleth map.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
center: [-110, 50],
3232
zoom: 2,
3333
view: 'Auto',
34+
language: 'Auto',
3435

3536
//Add authentication details for connecting to Azure Maps.
3637
authOptions: {

‎Samples/Animations/Animate a snakeline/Animate a snakeline.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
center: [-121.69281, 47.019588],
5252
zoom: 7,
5353
view: 'Auto',
54+
language: 'Auto',
5455

5556
//Add authentication details for connecting to Azure Maps.
5657
authOptions: {

‎Samples/Animations/Animate along a path/Animate along a path.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
center: [-122.345, 47.615],
3939
zoom: 14,
4040
view: 'Auto',
41+
language: 'Auto',
4142

4243
//Add authentication details for connecting to Azure Maps.
4344
authOptions: {

‎Samples/Animations/Animate along a route path/Animate along a route path.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
center: [-122.345, 47.615],
3939
zoom: 14,
4040
view: 'Auto',
41+
language: 'Auto',
4142

4243
//Add authentication details for connecting to Azure Maps.
4344
authOptions: {

‎Samples/Animations/Animate marker along path/Animate marker along path.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
center: [-122.3378, 47.6129],
3737
zoom: 13,
3838
view: 'Auto',
39+
language: 'Auto',
3940

4041
// Add authentication details for connecting to Azure Maps.
4142
authOptions: {

‎Samples/Animations/Animate multiple points/Animate multiple points.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
//Initialize a map instance.
2727
map = new atlas.Map('myMap', {
2828
view: 'Auto',
29+
language: 'Auto',
2930

3031
//Add authentication details for connecting to Azure Maps.
3132
authOptions: {

‎Samples/Animations/Animate point along path/Animate point along path.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
center: [-122.3378, 47.6129],
3737
zoom: 13,
3838
view: 'Auto',
39+
language: 'Auto',
3940

4041
//Add authentication details for connecting to Azure Maps.
4142
authOptions: {

‎Samples/Animations/Animate to new position of marker/Animate to new position of marker.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
center: [-121.69281, 47.019588],
2929
zoom: 7,
3030
view: 'Auto',
31+
language: 'Auto',
3132

3233
//Add authentication details for connecting to Azure Maps.
3334
authOptions: {

0 commit comments

Comments
 (0)