server/camlistored/ui: improve map aspect search and markers
Notably:
-do not load any markers on an empty search query, because that would
mean loading absolutely all of the items with a location, which seems
like a bad idea.
-use different markers for different nodes. For now, foursquare
checkins, file images, and files have their own marker.
-vendor in https://github.com/lvoogdt/Leaflet.awesome-markers to achieve
the above, which relies on Font Awesome, which we already have in.
icons available for the markers: http://fontawesome.io/icons/
-when no location can be inferred from the search query, set the view to
encompass all markers that were drawn.
-when a location search is known, draw a rectangle representing the
results zone.
-use thumber for image in marker popup
-use title, if possible, instead of blobRef for link text in marker
popup
-switch to directly using OpenStreetMap tiles, instead of MapBox ones.
https://storage.googleapis.com/camlistore-screenshots/Screenshot_20170622-232359.png
Change-Id: Ibc84fa988aea8b8d3a2588ee8790adf6d9b5ad7a
2017-06-21 16:36:15 +00:00
|
|
|
/*
|
|
|
|
Author: L. Voogdt
|
|
|
|
License: MIT
|
|
|
|
Version: 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Marker setup */
|
|
|
|
.awesome-marker {
|
|
|
|
background: url('markers-soft.png') no-repeat 0 0;
|
|
|
|
width: 35px;
|
|
|
|
height: 46px;
|
|
|
|
position:absolute;
|
|
|
|
left:0;
|
|
|
|
top:0;
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-shadow {
|
|
|
|
background: url('markers-shadow.png') no-repeat 0 0;
|
|
|
|
width: 36px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Retina displays */
|
|
|
|
@media (min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),
|
|
|
|
(-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx) {
|
|
|
|
.awesome-marker {
|
2017-08-23 01:19:44 +00:00
|
|
|
background-image: url('markers-soft2x.png');
|
server/camlistored/ui: improve map aspect search and markers
Notably:
-do not load any markers on an empty search query, because that would
mean loading absolutely all of the items with a location, which seems
like a bad idea.
-use different markers for different nodes. For now, foursquare
checkins, file images, and files have their own marker.
-vendor in https://github.com/lvoogdt/Leaflet.awesome-markers to achieve
the above, which relies on Font Awesome, which we already have in.
icons available for the markers: http://fontawesome.io/icons/
-when no location can be inferred from the search query, set the view to
encompass all markers that were drawn.
-when a location search is known, draw a rectangle representing the
results zone.
-use thumber for image in marker popup
-use title, if possible, instead of blobRef for link text in marker
popup
-switch to directly using OpenStreetMap tiles, instead of MapBox ones.
https://storage.googleapis.com/camlistore-screenshots/Screenshot_20170622-232359.png
Change-Id: Ibc84fa988aea8b8d3a2588ee8790adf6d9b5ad7a
2017-06-21 16:36:15 +00:00
|
|
|
background-size: 720px 46px;
|
|
|
|
}
|
|
|
|
.awesome-marker-shadow {
|
2017-08-23 01:19:44 +00:00
|
|
|
background-image: url('markers-shadow2x.png');
|
server/camlistored/ui: improve map aspect search and markers
Notably:
-do not load any markers on an empty search query, because that would
mean loading absolutely all of the items with a location, which seems
like a bad idea.
-use different markers for different nodes. For now, foursquare
checkins, file images, and files have their own marker.
-vendor in https://github.com/lvoogdt/Leaflet.awesome-markers to achieve
the above, which relies on Font Awesome, which we already have in.
icons available for the markers: http://fontawesome.io/icons/
-when no location can be inferred from the search query, set the view to
encompass all markers that were drawn.
-when a location search is known, draw a rectangle representing the
results zone.
-use thumber for image in marker popup
-use title, if possible, instead of blobRef for link text in marker
popup
-switch to directly using OpenStreetMap tiles, instead of MapBox ones.
https://storage.googleapis.com/camlistore-screenshots/Screenshot_20170622-232359.png
Change-Id: Ibc84fa988aea8b8d3a2588ee8790adf6d9b5ad7a
2017-06-21 16:36:15 +00:00
|
|
|
background-size: 35px 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker i {
|
|
|
|
color: #333;
|
|
|
|
margin-top: 10px;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker .icon-white {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Colors */
|
|
|
|
.awesome-marker-icon-red {
|
|
|
|
background-position: 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-darkred {
|
|
|
|
background-position: -180px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-lightred {
|
|
|
|
background-position: -360px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-orange {
|
|
|
|
background-position: -36px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-beige {
|
|
|
|
background-position: -396px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-green {
|
|
|
|
background-position: -72px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-darkgreen {
|
|
|
|
background-position: -252px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-lightgreen {
|
|
|
|
background-position: -432px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-blue {
|
|
|
|
background-position: -108px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-darkblue {
|
|
|
|
background-position: -216px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-lightblue {
|
|
|
|
background-position: -468px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-purple {
|
|
|
|
background-position: -144px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-darkpurple {
|
|
|
|
background-position: -288px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-pink {
|
|
|
|
background-position: -504px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-cadetblue {
|
|
|
|
background-position: -324px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-white {
|
|
|
|
background-position: -574px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-gray {
|
|
|
|
background-position: -648px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-lightgray {
|
|
|
|
background-position: -612px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.awesome-marker-icon-black {
|
|
|
|
background-position: -682px 0;
|
|
|
|
}
|