Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define("backbone/requirejs/async", [], function() {
- function t(t) {
- var e, r;
- e = document.createElement("script"), e.type = "text/javascript", e.async = !0, e.src = t, r = document.getElementsByTagName("script")[0], r.parentNode.insertBefore(e, r)
- }
- function e(t, e) {
- var r = /!(.+)/,
- i = t.replace(r, ""),
- s = r.test(t) ? t.replace(/.+!/, "") : o;
- return i += i.indexOf("?") < 0 ? "?" : "&", i + s + "=" + e
- }
- function r() {
- return i += 1, "__async_req_" + i + "__"
- }
- var o = "callback",
- i = 0;
- return {
- load: function(o, i, s, a) {
- if (a.isBuild) s(null);
- else {
- var n = r();
- window[n] = s, t(e(o, n))
- }
- }
- }
- }), define("backbone/helpers/maps", ["backbone/assets", "backbone/requirejs/async!https://maps.googleapis.com/maps/api/js?v=3.20&sensor=false&libraries=places,geometry&client=gme-loconsolutionsprivate"], function(t) {
- var e, r, o;
- return e = google.maps, o = [], r = {
- mapTypeId: e.MapTypeId.ROADMAP,
- minZoom: 0,
- zoom: 11,
- minZoom: t.Properties.map_zoom_minimum,
- maxZoom: t.Properties.map_zoom_maximum,
- streetViewControl: !1,
- panControl: !1,
- scaleControl: !1,
- mapTypeControl: !1,
- scaleControlOptions: {
- position: e.ControlPosition.TOP_RIGHT
- },
- disableDefaultUI: !0,
- mapTypeControlOptions: {
- mapTypeIds: ["coordinate", e.MapTypeId.ROADMAP, e.MapTypeId.HYBRID],
- style: e.MapTypeControlStyle.DROPDOWN_MENU,
- position: e.ControlPosition.TOP_RIGHT
- },
- styles: o
- }, t.create_map = function(i, s, a) {
- var n, p;
- return null == i && (i = !1), null == a && (a = !1), a || $("#map-div").length ? n = a ? a[0] : $("#map-div")[0] : (t.map = null, p = '<div class="map-view unselectable"><div id="map-div"></div></div>', $("#main-content").append(p), n = $("#map-div")[0]), !t.map || i ? (e.visualRefresh = !0, s && (r.center = s), r.center = new e.LatLng(19.114274, 72.88351999999998), r.styles = o, t.map = new e.Map(n, r), t.map.setMapTypeId(e.MapTypeId.ROADMAP)) : e.event.trigger(t.map, "resize"), t.event.on("changed:selected_service", function(r) {
- return t.map && null != r && (t.Util.is_service("rent") || t.Util.is_service("buy") || t.Util.is_service("pg") || t.Util.is_service("serviced-apartments")) ? (t.map.setMapTypeId(e.MapTypeId.ROADMAP), t.map.setOptions({
- styles: o
- }), t.map.setOptions({
- maxZoom: t.Properties.map_zoom_maximum
- })) : void 0
- })
- }, t.create_dedicated_map = function(i, s, a, n, p) {
- var h;
- return null == s && (s = null), null == a && (a = !1), null == n && (n = !1), null == p && (p = !1), i ? (h = i && a ? i[0] : i.find("#map-div")[0], e.visualRefresh = !0, r.styles = o, s && (r.center = s), n && (r.zoomControl = !0), p && (r.scrollwheel = !1), t.dedicated_map = new e.Map(h, r), t.dedicated_map.setMapTypeId(e.MapTypeId.ROADMAP), e.event.trigger(t.dedicated_map, "resize")) : void 0
- }, t.create_maps_from_array = function(r) {
- var o, i, s;
- for (o = 0, i = r.length; i > o; o++) s = r[o], e.visualRefresh = !0, t[s.name] = new e.Map(s.el.find("#map-div")[0], {
- center: s.center,
- zoom: s.zoom,
- styles: s.styles,
- disableDefaultUI: !0
- })
- }, e.Map.prototype.add_projection_helper_layer = function() {
- var r;
- return r = function(t) {
- return this.setMap(t)
- }, r.prototype = new e.OverlayView, r.prototype.draw = function() {}, r.prototype.onAdd = function() {}, r.prototype.onRemove = function() {}, this.overlay = new r(this), e.event.addListenerOnce(this, "idle", function(e) {
- return function() {
- return t.projection = e.overlay.getProjection()
- }
- }(this))
- }, e.Map.prototype.fromCoordinatesToPixel = function(t) {
- var r, o, i, s, a, n, p, h, g, l;
- return o = t.lat(), i = t.lng(), a = new e.Point(128, 128), l = this.getZoom(), s = 1 << l, r = Math.sin(o * (Math.PI / 180)), -.9999 > r && (r = -.9999), r > .9999 && (r = .9999), n = a.x + i * (256 / 360), p = a.y + .5 * Math.log((1 + r) / (1 - r)) * (-256 / (2 * Math.PI)), h = n * s, g = p * s, [parseInt(h), parseInt(g)]
- }, e.Map.prototype.set_map_bounds = function(t) {
- var e, r;
- return this.fitBounds(t), r = this.getZoom(), e = this.get_point_with_offset(t.getCenter(), r), this.panTo(e)
- }, e.Map.prototype.get_point_with_offset = function(t, r, o, i) {
- var s, a, n, p, h, g, l, d;
- return l = 0, g = $(".rent-service .info-window, .buy-service .info-window, .pg-service .info-window"), g.length && (l = g.width()), o = o ? o : l / 2, i = i ? i : 0, d = Math.pow(2, r), h = this.getProjection(), void 0 !== h ? (s = h.fromLatLngToPoint(t), p = new e.Point(o / d || 0, i / d || 0), a = new e.Point(s.x + p.x, s.y + p.y), n = this.getProjection().fromPointToLatLng(a)) : t
- }, e.Map.prototype.set_map_center = function(t, r, o) {
- var i, s, a, n;
- return null == r && (r = !1), n = this.getZoom(), s = this.getBounds(), !s || r ? (a = this.get_point_with_offset(t, n), this.panTo(a)) : (i = new e.LatLngBounds, i.extend(this.get_point_with_offset(s.getSouthWest(), n, o.left, o.bottom)), i.extend(this.get_point_with_offset(s.getNorthEast(), n, o.right, o.top)), i.contains(t) ? void 0 : (a = this.get_point_with_offset(t, n), this.panTo(a)))
- }, e.Map.prototype.get_highlight_polygon = function(t, r, o, i, s, a, n) {
- var p;
- return null == r && (r = !0), null == o && (o = .3), null == i && (i = "#7a26e8"), null == s && (s = "#7323dc"), null == a && (a = 2), null == n && (n = 1), p = new e.Polygon({
- paths: t,
- strokeColor: s,
- strokeOpacity: n,
- strokeWeight: a,
- fillColor: i,
- fillOpacity: o,
- visible: r
- })
- }, e.Map.prototype.get_polygon_bounds = function(t) {
- var r;
- return r = new e.LatLngBounds, t.getPath().forEach(function(t) {
- return r.extend(t)
- }), r
- }, e.Map.prototype.getBoundsZoomLevel = function(t) {
- var e, r, o, i, s, a, n, p, h, g, l;
- return i = function(t) {
- var e, r;
- return r = Math.sin(t * Math.PI / 180), e = Math.log((1 + r) / (1 - r)) / 2, Math.max(Math.min(e, Math.PI), -Math.PI) / 2
- }, l = function(t, e, r) {
- return Math.floor(Math.log(t / e / r) / Math.LN2)
- }, e = {
- height: 256,
- width: 256
- }, r = 21, h = t.getNorthEast(), g = t.getSouthWest(), o = (i(h.lat()) - i(g.lat())) / Math.PI, a = h.lng() - g.lng(), n = (0 > a ? a + 360 : a) / 360, s = l($(this.getDiv()).height(), e.height, o), p = l($(this.getDiv()).width(), e.width, n), Math.min(s, p, r)
- }, e.Map.prototype.getCirclePath = function(t, r, o, i) {
- var s, a, n, p, h, g, l, d, c, m, y, u;
- for (null == i && (i = 32), s = Math.PI / 180, d = 180 / Math.PI, a = 6371, c = r / a * d, m = c / Math.cos(t.lat() * s), h = new Array, 1 === o ? (y = 0, n = i + 1) : (y = i + 1, n = 0), l = y; 1 === o ? n > l : l > n;) u = Math.PI * (l / (i / 2)), g = t.lng() + m * Math.cos(u), p = t.lat() + c * Math.sin(u), h.push(new e.LatLng(p, g)), l += o;
- return h
- }, t.event.trigger("finished:init:maps"), e
- }), define("backbone/helpers/richmarker", ["backbone/assets", "backbone/helpers/maps"], function(t, e) {
- function r(e) {
- var r = e || {};
- this.ready_ = !1, this.bulkAdd = r.bulkAdd || !1, this.dragging_ = !1, void 0 == r.visible && (r.visible = !0), void 0 == r.shadow && (r.shadow = "0 0 0 transparent"), void 0 == r.anchor && (r.anchor = p.BOTTOM), void 0 == r.id && (r.id = null), r.states = void 0 == r.state ? [t.MarkerStates.Normal] : [r.state], void 0 == e.axis && (e.axis = null), void 0 == e.animate && (e.animate = !1), this.setValues(e)
- }
- google.maps = e, r.prototype = new google.maps.OverlayView, window.RichMarker = r, r.prototype.getVisible = function() {
- return this.get("visible")
- }, r.prototype.getVisible = r.prototype.getVisible, r.prototype.setVisible = function(t) {
- this.set("visible", t)
- }, r.prototype.setVisible = r.prototype.setVisible, r.prototype.getAxis = function() {
- return this.get("axis")
- }, r.prototype.getAxis = r.prototype.getAxis, r.prototype.setAxis = function(t) {
- this.set("axis", t)
- }, r.prototype.setAxis = r.prototype.setAxis, r.prototype.removeAxis = function() {
- this.set("axis", null)
- }, r.prototype.removeAxis = r.prototype.removeAxis, r.prototype.visible_changed = function() {
- this.ready_ && (this.markerWrapper_.style.display = this.getVisible() ? "" : "none", this.draw())
- }, r.prototype.visible_changed = r.prototype.visible_changed, r.prototype.setFlat = function(t) {
- this.set("flat", !!t)
- }, r.prototype.setFlat = r.prototype.setFlat, r.prototype.getFlat = function() {
- return this.get("flat")
- }, r.prototype.getFlat = r.prototype.getFlat, r.prototype.getWidth = function() {
- return this.get("width")
- }, r.prototype.getWidth = r.prototype.getWidth, r.prototype.getHeight = function() {
- return this.get("height")
- }, r.prototype.getHeight = r.prototype.getHeight, r.prototype.setShadow = function() {}, r.prototype.setShadow = r.prototype.setShadow, r.prototype.getShadow = function() {}, r.prototype.getShadow = r.prototype.getShadow, r.prototype.flat_changed = function() {
- !this.ready_
- }, r.prototype.flat_changed = r.prototype.flat_changed, r.prototype.setZIndex = function(t) {
- this.set("zIndex", t)
- }, r.prototype.setZIndex = r.prototype.setZIndex, r.prototype.getZIndex = function() {
- return this.get("zIndex")
- }, r.prototype.getZIndex = r.prototype.getZIndex, r.prototype.zIndex_changed = function() {
- this.getZIndex() && this.ready_ && (this.markerWrapper_.style.zIndex = this.getZIndex())
- }, r.prototype.zIndex_changed = r.prototype.zIndex_changed, r.prototype.getDraggable = function() {
- return this.get("draggable")
- }, r.prototype.getDraggable = r.prototype.getDraggable, r.prototype.setDraggable = function(t) {
- this.set("draggable", !!t)
- }, r.prototype.setDraggable = r.prototype.setDraggable, r.prototype.draggable_changed = function() {
- this.ready_ && (this.getDraggable() ? this.addDragging_(this.markerWrapper_) : this.removeDragListeners_())
- }, r.prototype.draggable_changed = r.prototype.draggable_changed, r.prototype.getPosition = function() {
- return this.get("position")
- }, r.prototype.getPosition = r.prototype.getPosition, r.prototype.setPosition = function(t) {
- this.set("position", t)
- }, r.prototype.setPosition = r.prototype.setPosition, r.prototype.position_changed = function() {
- this.draw()
- }, r.prototype.position_changed = r.prototype.position_changed, r.prototype.getAnchor = function() {
- return this.get("anchor")
- }, r.prototype.getAnchor = r.prototype.getAnchor, r.prototype.setAnchor = function(t) {
- this.set("anchor", t)
- }, r.prototype.setAnchor = r.prototype.setAnchor, r.prototype.anchor_changed = function() {
- this.draw()
- }, r.prototype.anchor_changed = r.prototype.anchor_changed, r.prototype.htmlToDocumentFragment_ = function(t) {
- var e = document.createElement("DIV");
- if (e.innerHTML = t, 1 == e.childNodes.length) return e.removeChild(e.firstChild);
- for (var r = document.createDocumentFragment(); e.firstChild;) r.appendChild(e.firstChild);
- return r
- }, r.prototype.removeChildren_ = function(t) {
- if (t)
- for (var e; e = t.firstChild;) t.removeChild(e)
- }, r.prototype.setContent = function(t) {
- this.set("content", t)
- }, r.prototype.setContent = r.prototype.setContent, r.prototype.getContent = function() {
- return this.get("content")
- }, r.prototype.getContent = r.prototype.getContent, r.prototype.setStates_ = function() {
- if (this.markerContent_) {
- var t = 0,
- e = "";
- for (t = 0; t < this.states.length; t++) e += " " + this.states[t].className;
- this.markerContent_.className = e
- }
- lastState = this.states[this.states.length - 1], this.setZIndex(lastState.zIndex), lastState.size && (this.set("width", lastState.size.width), this.set("height", lastState.size.height)), this.setColor_()
- }, r.prototype.addState = function(t) {
- -1 == this.states.indexOf(t) && this.states.push(t), this.states = _.sortBy(this.states, function(t) {
- return t.priority
- }), this.setStates_(), this.draw()
- }, r.prototype.addState = r.prototype.addState, r.prototype.removeState = function(t) {
- -1 != this.states.indexOf(t) && (this.states = _.without(this.states, t)), this.states = _.sortBy(this.states, function(t) {
- return t.priority
- }), this.setStates_(), this.draw()
- }, r.prototype.removeState = r.prototype.removeState, r.prototype.setColor = function(t) {
- this.set("color", t), this.setColor_()
- }, r.prototype.setColor = r.prototype.setColor, r.prototype.setColor_ = function() {
- color = this.get("color"), lastState = this.states[this.states.length - 1], lastState.priority >= 10 && (color = null), this.markerContent_ && (arrow = this.markerContent_.getElementsByClassName("arrow")[0], color ? (this.markerContent_.style.backgroundImage = "none", this.markerContent_.style.backgroundColor = color, this.markerContent_.style.filter = 'e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"))', arrow && (arrow.style.borderTopColor = color)) : (this.markerContent_.style.cssText = "", arrow && (arrow.style.cssText = "")))
- }, r.prototype.getStates = function() {
- return this.get("states")
- }, r.prototype.getStates = r.prototype.getStates, r.prototype.setStates = function(t) {
- return this.set("states", t)
- }, r.prototype.setStates = r.prototype.setStates, r.prototype.hasState = function(t) {
- return -1 != this.get("states").indexOf(t)
- }, r.prototype.hasState = r.prototype.hasState, r.prototype.setAnimate = function(t) {
- t && this.set("animate", t), this.draw()
- }, r.prototype.setAnimate = r.prototype.setAnimate, r.prototype.getAnimate = function() {
- return this.animate
- }, r.prototype.getAnimate = r.prototype.getAnimate, r.prototype.content_changed = function() {
- if (this.markerContent_) {
- this.removeChildren_(this.markerContent_);
- var t = this.getContent();
- if (t) {
- "string" == typeof t && (t = t.replace(/^\s*([\S\s]*)\b\s*$/, "$1"), t = this.htmlToDocumentFragment_(t)), t.title ? (this.markerContent_.title = t.title, t.title = "") : t.childNodes.length && t.childNodes[0].title && (this.markerContent_.title = t.childNodes[0].title, t.childNodes[0].title = ""), this.markerContent_.appendChild(t);
- for (var e, r = this, o = this.markerContent_.getElementsByTagName("IMG"), i = 0; e = o[i]; i++) google.maps.event.addDomListener(e, "mousedown", function(t) {
- r.getDraggable() && (t.preventDefault && t.preventDefault(), t.returnValue = !1)
- }), google.maps.event.addDomListener(e, "load", function() {
- r.draw()
- });
- google.maps.event.trigger(this, "domready")
- }
- this.ready_ && this.draw()
- }
- }, r.prototype.content_changed = r.prototype.content_changed, r.prototype.setCursor_ = function(t) {
- if (this.ready_) {
- var e = ""; - 1 !== navigator.userAgent.indexOf("Gecko/") ? ("dragging" == t && (e = "-moz-grabbing"), "dragready" == t && (e = "-moz-grab"), "draggable" == t && (e = "pointer")) : (("dragging" == t || "dragready" == t) && (e = "move"), "draggable" == t && (e = "pointer")), this.markerWrapper_.style.cursor != e && (this.markerWrapper_.style.cursor = e)
- }
- };
- var o, i, s, a;
- r.prototype.startDrag = function(t) {
- if (this.getDraggable() && (google.maps.event.trigger(this, "before_dragstart"), !this.dragging_)) {
- this.dragging_ = !0;
- var e = this.getMap();
- this.mapDraggable_ = e.get("draggable"), e.set("draggable", !1), o = t.clientX, i = t.clientY, this.mouseX_ = t.clientX, this.mouseY_ = t.clientY, this.setCursor_("dragready"), this.markerWrapper_.style.MozUserSelect = "none", this.markerWrapper_.style.KhtmlUserSelect = "none", this.markerWrapper_.style.WebkitUserSelect = "none", this.markerWrapper_.unselectable = "on", this.markerWrapper_.onselectstart = function() {
- return !1
- }, this.addDraggingListeners_(), google.maps.event.trigger(this, "dragstart")
- }
- }, r.prototype.stopDrag = function() {
- this.getDraggable() && this.dragging_ && (this.dragging_ = !1, this.getMap().set("draggable", this.mapDraggable_), s = this.mouseX_, a = this.mouseY_, this.mouseX_ = this.mouseY_ = this.mapDraggable_ = null, this.markerWrapper_.style.MozUserSelect = "", this.markerWrapper_.style.KhtmlUserSelect = "", this.markerWrapper_.style.WebkitUserSelect = "", this.markerWrapper_.unselectable = "off", this.markerWrapper_.onselectstart = function() {}, this.removeDraggingListeners_(), this.setCursor_("draggable"), (Math.abs(s - o) > 2 || Math.abs(a - i) > 2) && google.maps.event.trigger(this, "dragend"), this.draw())
- };
- var n;
- r.prototype.drag = function(t) {
- if (!this.getDraggable() || !this.dragging_) return void this.stopDrag();
- var e = this.getAxis(),
- r = this.mouseX_ - t.clientX,
- o = this.mouseY_ - t.clientY;
- if (this.mouseX_ = t.clientX, this.mouseY_ = t.clientY, "x" == e) var i = parseInt(this.markerWrapper_.style.top, 10),
- s = parseInt(this.markerWrapper_.style.left, 10) - r;
- else if ("y" == e) var i = parseInt(this.markerWrapper_.style.top, 10) - o,
- s = parseInt(this.markerWrapper_.style.left, 10);
- else if ("stop" == e) var i = parseInt(this.markerWrapper_.style.top, 10),
- s = parseInt(this.markerWrapper_.style.left, 10);
- else var i = parseInt(this.markerWrapper_.style.top, 10) - o,
- s = parseInt(this.markerWrapper_.style.left, 10) - r;
- this.markerWrapper_.style.left = s + "px", this.markerWrapper_.style.top = i + "px";
- var a = this.getOffset_(),
- p = new google.maps.Point(s - a.width, i - a.height),
- h = this.getProjection();
- n = h.fromDivPixelToLatLng(p), this.setPosition(h.fromDivPixelToLatLng(p)), this.setCursor_("dragging"), google.maps.event.trigger(this, "drag")
- }, r.prototype.calculateDistance = function(t) {
- {
- var r = (this.getOffset_(), this.getProjection(), this.getPosition());
- e.geometry.spherical.computeDistanceBetween(r, t)
- }
- }, r.prototype.calculateDistance = r.prototype.calculateDistance, r.prototype.removeDragListeners_ = function() {
- this.draggableListener_ && (google.maps.event.removeListener(this.draggableListener_), delete this.draggableListener_), this.setCursor_("")
- }, r.prototype.addDragging_ = function(t) {
- if (t) {
- var e = this;
- this.draggableListener_ = google.maps.event.addDomListener(t, "mousedown", function(t) {
- e.startDrag(t)
- }), this.setCursor_("draggable")
- }
- }, r.prototype.addDraggingListeners_ = function() {
- var t = this;
- this.markerWrapper_.setCapture ? (this.markerWrapper_.setCapture(!0), this.draggingListeners_ = [google.maps.event.addDomListener(this.markerWrapper_, "mousemove", function(e) {
- t.drag(e)
- }, !0), google.maps.event.addDomListener(this.markerWrapper_, "mouseup", function() {
- t.stopDrag(), t.markerWrapper_.releaseCapture()
- }, !0)]) : this.draggingListeners_ = [google.maps.event.addDomListener(window, "mousemove", function(e) {
- t.drag(e)
- }, !0), google.maps.event.addDomListener(window, "mouseup", function() {
- t.stopDrag()
- }, !0)]
- }, r.prototype.removeDraggingListeners_ = function() {
- if (this.draggingListeners_) {
- for (var t, e = 0; t = this.draggingListeners_[e]; e++) google.maps.event.removeListener(t);
- this.draggingListeners_.length = 0
- }
- }, r.prototype.getOffset_ = function() {
- var t = this.getAnchor();
- if ("object" == typeof t) return t;
- var e = new google.maps.Size(0, 0);
- if (!this.markerContent_) return e;
- var r = this.get("width") || this.markerContent_.offsetWidth,
- o = this.get("height") || this.markerContent_.offsetHeight;
- switch (t) {
- case p.TOP_LEFT:
- break;
- case p.TOP:
- e.width = -r / 2;
- break;
- case p.TOP_RIGHT:
- e.width = -r;
- break;
- case p.LEFT:
- e.height = -o / 2;
- break;
- case p.MIDDLE:
- e.width = -r / 2, e.height = -o / 2;
- break;
- case p.RIGHT:
- e.width = -r, e.height = -o / 2;
- break;
- case p.BOTTOM_LEFT:
- e.height = -o;
- break;
- case p.BOTTOM:
- e.width = -r / 2, e.height = -o;
- break;
- case p.BOTTOM_RIGHT:
- e.width = -r, e.height = -o
- }
- return e
- }, r.prototype.onAdd = function() {
- var e = !1;
- if (this.markerWrapper_ || (this.markerWrapper_ = document.createElement("DIV"), this.markerWrapper_.style.position = "absolute", e = !0), this.markerWrapper_.style.display = this.getVisible() ? "" : "none", this.animate && (this.markerWrapper_.style.webkitTransition = this.markerWrapper_.style.MozTransition = this.markerWrapper_.style.oTransition = this.markerWrapper_.style.transition = this.animate), !this.markerContent_) {
- this.markerContent_ = document.createElement("DIV"), this.markerWrapper_.appendChild(this.markerContent_);
- var r = this;
- google.maps.event.addDomListener(this.markerContent_, "click", function(t) {
- google.maps.event.trigger(r, "click", t)
- }), google.maps.event.addDomListener(this.markerContent_, "mouseover", function() {
- google.maps.event.trigger(r, "mouseover")
- }), google.maps.event.addDomListener(this.markerContent_, "mouseout", function() {
- google.maps.event.trigger(r, "mouseout")
- }), $(this.markerContent_).data() && ($(this.markerContent_).data().id = this.get("id"))
- }
- this.ready_ = !0, this.content_changed(), this.draggable_changed(), this.setStates_();
- var o = this.getPanes();
- o ? this.bulkAdd && e ? t.map_fragment && (t.map_fragment.appendChild(this.markerWrapper_), t.map_pane = o.overlayMouseTarget) : o.overlayMouseTarget.appendChild(this.markerWrapper_) : (t.map_fragment.appendChild(this.markerWrapper_), t.map_pane = o.overlayMouseTarget), google.maps.event.trigger(this, "ready")
- }, r.prototype.onAdd = r.prototype.onAdd, r.prototype.draw = function() {
- if (this.ready_ && !this.dragging_) {
- var t = this.getProjection();
- if (t) {
- var e = this.get("position"),
- r = t.fromLatLngToDivPixel(e),
- o = this.getOffset_();
- $.fn.tooltip && $(this.markerContent_).tooltip("destroy").tooltip({
- container: ".map-view",
- html: !0
- }), this.markerWrapper_.style.top = r.y + o.height + "px", this.markerWrapper_.style.left = r.x + o.width + "px"
- }
- }
- }, r.prototype.draw = r.prototype.draw, r.prototype.onRemove = function() {
- this.markerWrapper_ && this.markerWrapper_.parentNode && ($.fn.tooltip && $(this.markerContent_).tooltip("destroy"), this.markerWrapper_.parentNode.removeChild(this.markerWrapper_), this.markerWrapper_.style.display = "none"), this.removeDragListeners_()
- }, r.prototype.onRemove = r.prototype.onRemove;
- var p = {
- TOP_LEFT: 1,
- TOP: 2,
- TOP_RIGHT: 3,
- LEFT: 4,
- MIDDLE: 5,
- RIGHT: 6,
- BOTTOM_LEFT: 7,
- BOTTOM: 8,
- BOTTOM_RIGHT: 9
- };
- return window.RichMarkerPosition = p, r
- }), define("backbone/helpers/maps_util", ["backbone/helpers/maps", "backbone/assets", "backbone/helpers/richmarker"], function(t, e, r) {
- return {
- Maps: t,
- RichMarker: r
- }
- });
- //# sourceMappingURL=https://assets-sources.housingcdn.com/website/javascripts/backbone/helpers/maps_util-00436e4be7f5191baa5ce9c9372be8f2.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement