@maplander/components 0.21.51 → 0.21.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/maplander-components.umd.js +4 -4
- package/bundles/maplander-components.umd.js.map +1 -1
- package/bundles/maplander-components.umd.min.js +1 -1
- package/bundles/maplander-components.umd.min.js.map +1 -1
- package/esm2015/lib/services/markers/markers.service.js +5 -5
- package/esm5/lib/services/markers/markers.service.js +5 -5
- package/fesm2015/maplander-components.js +4 -4
- package/fesm2015/maplander-components.js.map +1 -1
- package/fesm5/maplander-components.js +4 -4
- package/fesm5/maplander-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -7566,15 +7566,15 @@ var MarkersService = /** @class */ (function () {
|
|
|
7566
7566
|
*/
|
|
7567
7567
|
function (config) {
|
|
7568
7568
|
/** @type {?} */
|
|
7569
|
-
var colony = config.address.colony.replace(/[\])}[{(]/g, '');
|
|
7569
|
+
var colony = config.address.colony ? config.address.colony.replace(/[\])}[{(]/g, '') : '';
|
|
7570
7570
|
/** @type {?} */
|
|
7571
|
-
var city = config.address.city.replace(/[\])}[{(]/g, '');
|
|
7571
|
+
var city = config.address.city ? config.address.city.replace(/[\])}[{(]/g, '') : '';
|
|
7572
7572
|
/** @type {?} */
|
|
7573
7573
|
var url = 'property/';
|
|
7574
7574
|
url += this._propertyTypePipe.transform(config.propertyType, true) + "-";
|
|
7575
7575
|
url += this._offeringTypePipe.transform(config.offering, ' ').replace(/ /g, '') + "-";
|
|
7576
|
-
url +=
|
|
7577
|
-
url +=
|
|
7576
|
+
url += colony ? colony.replace(/\//g, '-') + "-" : '';
|
|
7577
|
+
url += city ? city.replace(/\//g, '-') + "-" : '';
|
|
7578
7578
|
url += config.propertyId;
|
|
7579
7579
|
url = Utils.removeDiacritics(url).replace(/ /g, '-').toLowerCase();
|
|
7580
7580
|
return url;
|