google-maps-infobox
Advanced tools
Comparing version 1.1.15 to 2.0.0
@@ -221,3 +221,3 @@ /** | ||
} | ||
// Workaround for Google bug that causes the cursor to change to a pointer | ||
@@ -491,3 +491,3 @@ // when the mouse moves over a marker underneath InfoBox. | ||
this.div_.style.left = (pixPosition.x + this.pixelOffset_.width) + "px"; | ||
if (this.alignBottom_) { | ||
@@ -696,3 +696,3 @@ this.div_.style.bottom = -(pixPosition.y + this.pixelOffset_.height) + "px"; | ||
* Returns the content of the InfoBox. | ||
* @returns {string} | ||
* @returns {string | Node} | ||
*/ | ||
@@ -781,3 +781,3 @@ InfoBox.prototype.getContent = function () { | ||
me.setMap(this.map); | ||
}); | ||
}); | ||
} | ||
@@ -807,3 +807,3 @@ | ||
if (this.eventListeners_) { | ||
for (i = 0; i < this.eventListeners_.length; i++) { | ||
@@ -823,7 +823,7 @@ | ||
if (this.mapListener_) { | ||
google.maps.event.removeListener(this.mapListener_); | ||
this.mapListener_ = null; | ||
this.mapListener_ = null; | ||
} | ||
if (this.contextListener_) { | ||
@@ -830,0 +830,0 @@ |
@@ -221,3 +221,3 @@ /** | ||
} | ||
// Workaround for Google bug that causes the cursor to change to a pointer | ||
@@ -491,3 +491,3 @@ // when the mouse moves over a marker underneath InfoBox. | ||
this.div_.style.left = (pixPosition.x + this.pixelOffset_.width) + "px"; | ||
if (this.alignBottom_) { | ||
@@ -696,3 +696,3 @@ this.div_.style.bottom = -(pixPosition.y + this.pixelOffset_.height) + "px"; | ||
* Returns the content of the InfoBox. | ||
* @returns {string} | ||
* @returns {string | Node} | ||
*/ | ||
@@ -781,3 +781,3 @@ InfoBox.prototype.getContent = function () { | ||
me.setMap(this.map); | ||
}); | ||
}); | ||
} | ||
@@ -807,3 +807,3 @@ | ||
if (this.eventListeners_) { | ||
for (i = 0; i < this.eventListeners_.length; i++) { | ||
@@ -823,7 +823,7 @@ | ||
if (this.mapListener_) { | ||
google.maps.event.removeListener(this.mapListener_); | ||
this.mapListener_ = null; | ||
this.mapListener_ = null; | ||
} | ||
if (this.contextListener_) { | ||
@@ -839,2 +839,2 @@ | ||
module.exports = InfoBox; | ||
module.exports = { default: InfoBox, InfoBox: InfoBox }; |
{ | ||
"name": "google-maps-infobox", | ||
"description": "A browserify optimized module of google maps infobox", | ||
"version": "1.1.15", | ||
"version": "2.0.0", | ||
"repository": { | ||
@@ -9,2 +9,8 @@ "type": "git", | ||
}, | ||
"files": [ | ||
"infobox-lib.js", | ||
"infobox-module.js", | ||
"types/index.d.ts" | ||
], | ||
"types": "types", | ||
"keywords": [ | ||
@@ -21,2 +27,3 @@ "browser", | ||
"scripts": { | ||
"dtslint": "dtslint types", | ||
"start": "gulp", | ||
@@ -26,2 +33,4 @@ "compile": "gulp modularize" | ||
"devDependencies": { | ||
"@types/googlemaps": "^3.29.2", | ||
"dtslint": "github:Microsoft/dtslint#production", | ||
"gulp": "^3.8.10", | ||
@@ -28,0 +37,0 @@ "gulp-chmod": "^1.2.0", |
50892
1338
5
6