We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd193c4 commit d1201e1Copy full SHA for d1201e1
controllers/map-controller.js
@@ -174,6 +174,8 @@
174
((typeof center === 'string') && center.match(/\{\{.*\}\}/))
175
) {
176
mapOptions.center = new google.maps.LatLng(0, 0);
177
+ } else if( (typeof center === 'string') && center.match(/[0-9.-]*,[0-9.-]*/) ){
178
+ mapOptions.center = new google.maps.LatLng(center);
179
} else if (!(center instanceof google.maps.LatLng)) {
180
var geoCenter = mapOptions.center;
181
delete mapOptions.center;
0 commit comments