Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #424 from bmcbride/gh-pages
Browse files Browse the repository at this point in the history
Use custom popup class for geojsonio features
  • Loading branch information
tmcw committed Feb 23, 2015
2 parents e6599dd + d1833ae commit dd6092d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
11 changes: 4 additions & 7 deletions css/marker.css
Expand Up @@ -45,27 +45,24 @@
background-color:#f7f7f7;
}

.leaflet-popup-content-wrapper {
.geojsonio-feature .leaflet-popup-content-wrapper {
float: left;
width: 100%;
padding: 0;
}

.leaflet-popup-content {
.geojsonio-feature .leaflet-popup-content {
float: left;
padding: 0 !important;
width:100%;
}

.leaflet-popup-tip-container {
.geojsonio-feature .leaflet-popup-tip-container {
float: left;
margin-left: 50%;
right: 10px;
}

.leaflet-popup-content-wrapper {
padding: 0;
}

datalist {
overflow: auto;
height: 150px;
Expand Down
3 changes: 2 additions & 1 deletion dist/site.js
Expand Up @@ -26833,7 +26833,8 @@ function bindPopup(l) {
closeButton: false,
maxWidth: 500,
maxHeight: 400,
autoPanPadding: [5, 45]
autoPanPadding: [5, 45],
className: 'geojsonio-feature'
}, l).setContent(content));

l.on('popupopen', function(e){
Expand Down
3 changes: 2 additions & 1 deletion dist/site.mobile.js
Expand Up @@ -26753,7 +26753,8 @@ function bindPopup(l) {
closeButton: false,
maxWidth: 500,
maxHeight: 400,
autoPanPadding: [5, 45]
autoPanPadding: [5, 45],
className: 'geojsonio-feature'
}, l).setContent(content));

l.on('popupopen', function(e){
Expand Down
3 changes: 2 additions & 1 deletion src/ui/map.js
Expand Up @@ -234,7 +234,8 @@ function bindPopup(l) {
closeButton: false,
maxWidth: 500,
maxHeight: 400,
autoPanPadding: [5, 45]
autoPanPadding: [5, 45],
className: 'geojsonio-feature'
}, l).setContent(content));

l.on('popupopen', function(e){
Expand Down

0 comments on commit dd6092d

Please sign in to comment.