-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GoogleMarkerClusterer: inject cluster styles when strategy module is …
…loaded
- Loading branch information
Edan Schwartz
authored and
Edan Schwartz
committed
May 13, 2014
1 parent
80d66d5
commit 4535caf
Showing
4 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
define(function() { | ||
var styleString = '' + | ||
'.aeris-cluster:after {' + | ||
' content: "";' + | ||
' position: absolute;' + | ||
' top: -11px;' + | ||
' right: -14px;' + | ||
' width: 21px;' + | ||
' height: 18px;' + | ||
' background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #a90329), color-stop(44%, #8f0222), color-stop(100%, #6d0019));' + | ||
' background-image: -webkit-linear-gradient(top, #a90329 0%, #8f0222 44%, #6d0019 100%);' + | ||
' background-image: -moz-linear-gradient(top, #a90329 0%, #8f0222 44%, #6d0019 100%);' + | ||
' background-image: -o-linear-gradient(top, #a90329 0%, #8f0222 44%, #6d0019 100%);' + | ||
' background-image: linear-gradient(top, #a90329 0%, #8f0222 44%, #6d0019 100%);' + | ||
' -webkit-border-radius: 5px;' + | ||
' -moz-border-radius: 5px;' + | ||
' -ms-border-radius: 5px;' + | ||
' -o-border-radius: 5px;' + | ||
' border-radius: 5px;' + | ||
' border: 1px solid rgba(0, 0, 0, 0.5);' + | ||
'}' + | ||
'' + | ||
'.aeris-cluster div {' + | ||
' z-index: 2;' + | ||
'}'; | ||
|
||
/** | ||
* Returns CSS style rules for gmaps | ||
* marker clusters. | ||
* | ||
* @for aeris.maps.gmaps.markers | ||
* @method markerClusterStyleTemplate | ||
* @return {String} | ||
*/ | ||
return function markerClusterStyleTemplate() { | ||
return styleString; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters