add contact symbols

merge-requests/1/head
Julien Veyssier 2016-12-10 15:12:27 +01:00
parent dd48076c64
commit 5687866d26
8 changed files with 69 additions and 18 deletions

View File

@ -70,7 +70,7 @@ Any feedback will be appreciated.
<category>multimedia</category> <category>multimedia</category>
<website>https://gitlab.com/eneiluj/gpxedit-oc</website> <website>https://gitlab.com/eneiluj/gpxedit-oc</website>
<bugs>https://gitlab.com/eneiluj/gpxedit-oc/issues</bugs> <bugs>https://gitlab.com/eneiluj/gpxedit-oc/issues</bugs>
<screenshot>https://gitlab.com/eneiluj/gpxedit-oc/uploads/36c9bf5ef841d585b5f4365d85586d49/one.png</screenshot> <screenshot>https://gitlab.com/eneiluj/gpxedit-oc/uploads/01955c60c4605a92c68dd5617b0703c0/gpxedit.gif</screenshot>
<screenshot>https://gitlab.com/eneiluj/gpxedit-oc/uploads/c062d8bcf995a9192f5e11702aa03710/two.png</screenshot> <screenshot>https://gitlab.com/eneiluj/gpxedit-oc/uploads/c062d8bcf995a9192f5e11702aa03710/two.png</screenshot>
<screenshot>https://gitlab.com/eneiluj/gpxedit-oc/uploads/c3aa82fe2cb18aa44eef9207c790838c/three.png</screenshot> <screenshot>https://gitlab.com/eneiluj/gpxedit-oc/uploads/c3aa82fe2cb18aa44eef9207c790838c/three.png</screenshot>
<dependencies> <dependencies>

View File

@ -704,22 +704,48 @@ input[type=checkbox]
background: url('images/symbols/geocache-open.png') no-repeat right 8px center rgba(240, 240, 240, 0.90); background: url('images/symbols/geocache-open.png') no-repeat right 8px center rgba(240, 240, 240, 0.90);
background-size: 22px 20px; background-size: 22px 20px;
} }
/*
Block, Blue .contact-alien, .contact-bigears, .contact-female3, .contact-cat, .contact-dog{
Blue Diamond background-size: 24px 24px !important;
City (Capitol) background-repeat: no-repeat !important;
Flag, Blue width: 24px !important;
Multi-cache height: 24px !important;
Parking Area }
Pin, Blue .contact-alien{
Residence background-image: url('images/symbols/contact-alien.png') !important;
Traditional Cache }
Trailhead .contact-alien-select{
Unknown Cache background: url('images/symbols/contact-alien.png') no-repeat right 8px center rgba(240, 240, 240, 0.90);
Virtual Cache background-size: 20px 20px;
Event Cache }
Waypoint .contact-bigears{
*/ background-image: url('images/symbols/contact-bigears.png') !important;
}
.contact-bigears-select{
background: url('images/symbols/contact-bigears.png') no-repeat right 8px center rgba(240, 240, 240, 0.90);
background-size: 20px 20px;
}
.contact-female3{
background-image: url('images/symbols/contact-female3.png') !important;
}
.contact-female3-select{
background: url('images/symbols/contact-female3.png') no-repeat right 8px center rgba(240, 240, 240, 0.90);
background-size: 20px 20px;
}
.contact-cat{
background-image: url('images/symbols/contact-cat.png') !important;
}
.contact-cat-select{
background: url('images/symbols/contact-cat.png') no-repeat right 8px center rgba(240, 240, 240, 0.90);
background-size: 20px 20px;
}
.contact-dog{
background-image: url('images/symbols/contact-dog.png') !important;
}
.contact-dog-select{
background: url('images/symbols/contact-dog.png') no-repeat right 8px center rgba(240, 240, 240, 0.90);
background-size: 20px 20px;
}
.popupImage{ .popupImage{
width: 80px; width: 80px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -35,6 +35,11 @@ var symbolSelectClasses = {
'Geocache': 'geocache-select', 'Geocache': 'geocache-select',
'Geocache Found': 'geocache-open-select', 'Geocache Found': 'geocache-open-select',
'Medical Facility': 'medical-select', 'Medical Facility': 'medical-select',
'Contact, Alien': 'contact-alien-select',
'Contact, Big Ears': 'contact-bigears-select',
'Contact, Female3': 'contact-female3-select',
'Contact, Cat': 'contact-cat-select',
'Contact, Dog': 'contact-dog-select',
} }
var symbolIcons = { var symbolIcons = {
@ -133,6 +138,26 @@ var symbolIcons = {
className: 'medical', className: 'medical',
iconAnchor: [13, 11] iconAnchor: [13, 11]
}), }),
'Contact, Alien': L.divIcon({
className: 'contact-alien',
iconAnchor: [12, 12]
}),
'Contact, Big Ears': L.divIcon({
className: 'contact-bigears',
iconAnchor: [12, 12]
}),
'Contact, Female3': L.divIcon({
className: 'contact-female3',
iconAnchor: [12, 12]
}),
'Contact, Cat': L.divIcon({
className: 'contact-cat',
iconAnchor: [12, 12]
}),
'Contact, Dog': L.divIcon({
className: 'contact-dog',
iconAnchor: [12, 12]
}),
} }
var hoverStyle = { var hoverStyle = {
@ -1097,7 +1122,7 @@ $(document).ready(function(){
}); });
// load a file if 'file' GET url parameter was given // load a file if 'file' GET url parameter was given
var fileparam = getUrlParameter('file'); var fileparam = decodeURI(getUrlParameter('file'));
if (fileparam){ if (fileparam){
loadAction(fileparam); loadAction(fileparam);
} }