Merge pull request #230 from ssmaurya/master
Map widgets SSL issues #228
This commit is contained in:
commit
1f3c68d0d8
@ -152,7 +152,7 @@ export default class TbGoogleMap {
|
|||||||
/* eslint-disable no-undef */
|
/* eslint-disable no-undef */
|
||||||
updateMarkerColor(marker, color) {
|
updateMarkerColor(marker, color) {
|
||||||
var pinColor = color.substr(1);
|
var pinColor = color.substr(1);
|
||||||
var pinImage = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColor,
|
var pinImage = new google.maps.MarkerImage("https://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColor,
|
||||||
new google.maps.Size(21, 34),
|
new google.maps.Size(21, 34),
|
||||||
new google.maps.Point(0,0),
|
new google.maps.Point(0,0),
|
||||||
new google.maps.Point(10, 34));
|
new google.maps.Point(10, 34));
|
||||||
@ -191,11 +191,11 @@ export default class TbGoogleMap {
|
|||||||
createMarker(location, settings, onClickListener, markerArgs) {
|
createMarker(location, settings, onClickListener, markerArgs) {
|
||||||
var height = 34;
|
var height = 34;
|
||||||
var pinColor = settings.color.substr(1);
|
var pinColor = settings.color.substr(1);
|
||||||
var pinImage = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColor,
|
var pinImage = new google.maps.MarkerImage("https://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|" + pinColor,
|
||||||
new google.maps.Size(21, 34),
|
new google.maps.Size(21, 34),
|
||||||
new google.maps.Point(0,0),
|
new google.maps.Point(0,0),
|
||||||
new google.maps.Point(10, 34));
|
new google.maps.Point(10, 34));
|
||||||
var pinShadow = new google.maps.MarkerImage("http://chart.apis.google.com/chart?chst=d_map_pin_shadow",
|
var pinShadow = new google.maps.MarkerImage("https://chart.apis.google.com/chart?chst=d_map_pin_shadow",
|
||||||
new google.maps.Size(40, 37),
|
new google.maps.Size(40, 37),
|
||||||
new google.maps.Point(0, 0),
|
new google.maps.Point(0, 0),
|
||||||
new google.maps.Point(12, 35));
|
new google.maps.Point(12, 35));
|
||||||
@ -350,4 +350,4 @@ export default class TbGoogleMap {
|
|||||||
return this.tooltips;
|
return this.tooltips;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,8 +28,8 @@ export default class TbOpenStreetMap {
|
|||||||
|
|
||||||
this.map = L.map($containerElement[0]).setView([0, 0], this.defaultZoomLevel || 8);
|
this.map = L.map($containerElement[0]).setView([0, 0], this.defaultZoomLevel || 8);
|
||||||
|
|
||||||
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
|
L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
|
||||||
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
attribution: '© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
|
||||||
}).addTo(this.map);
|
}).addTo(this.map);
|
||||||
|
|
||||||
if (initCallback) {
|
if (initCallback) {
|
||||||
@ -51,11 +51,11 @@ export default class TbOpenStreetMap {
|
|||||||
updateMarkerColor(marker, color) {
|
updateMarkerColor(marker, color) {
|
||||||
var pinColor = color.substr(1);
|
var pinColor = color.substr(1);
|
||||||
var icon = L.icon({
|
var icon = L.icon({
|
||||||
iconUrl: 'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|' + pinColor,
|
iconUrl: 'https://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|' + pinColor,
|
||||||
iconSize: [21, 34],
|
iconSize: [21, 34],
|
||||||
iconAnchor: [10, 34],
|
iconAnchor: [10, 34],
|
||||||
popupAnchor: [0, -34],
|
popupAnchor: [0, -34],
|
||||||
shadowUrl: 'http://chart.apis.google.com/chart?chst=d_map_pin_shadow',
|
shadowUrl: 'https://chart.apis.google.com/chart?chst=d_map_pin_shadow',
|
||||||
shadowSize: [40, 37],
|
shadowSize: [40, 37],
|
||||||
shadowAnchor: [12, 35]
|
shadowAnchor: [12, 35]
|
||||||
});
|
});
|
||||||
@ -96,11 +96,11 @@ export default class TbOpenStreetMap {
|
|||||||
var height = 34;
|
var height = 34;
|
||||||
var pinColor = settings.color.substr(1);
|
var pinColor = settings.color.substr(1);
|
||||||
var icon = L.icon({
|
var icon = L.icon({
|
||||||
iconUrl: 'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|' + pinColor,
|
iconUrl: 'https://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|' + pinColor,
|
||||||
iconSize: [21, 34],
|
iconSize: [21, 34],
|
||||||
iconAnchor: [10, 34],
|
iconAnchor: [10, 34],
|
||||||
popupAnchor: [0, -34],
|
popupAnchor: [0, -34],
|
||||||
shadowUrl: 'http://chart.apis.google.com/chart?chst=d_map_pin_shadow',
|
shadowUrl: 'https://chart.apis.google.com/chart?chst=d_map_pin_shadow',
|
||||||
shadowSize: [40, 37],
|
shadowSize: [40, 37],
|
||||||
shadowAnchor: [12, 35]
|
shadowAnchor: [12, 35]
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user