Thomas HVAC Company
]
]
}
}
});
// Add a new layer to visualize the polygon.
myMap.addLayer({
'id': 'maine',
'type': 'fill',
'source': 'maine', // reference the data source
'layout': {},
'paint': {
'fill-color': '#e74925', // blue color fill
'fill-opacity': 0.5
}
});
// Add a black outline around the polygon.
// myMap.addLayer({
// 'id': 'outline',
// 'type': 'line',
// 'source': 'maine',
// 'layout': {},
// 'paint': {
// 'line-color': '#000',
// 'line-width': 3
// }
// });
myMap.fitBounds([
[-87.300, 34.057], // southwestern corner of the bounds
[-85.556, 35.400] // northeastern corner of the bounds
]);
});