Support shonin shards

Fixes #951
This commit is contained in:
fkloft 2015-03-05 19:37:40 +01:00
parent 9b530753d3
commit e9d6436260

View File

@ -148,6 +148,7 @@ window.artifact.getArtifactDescriptions = function(type) {
'jarvis': { 'title': "Jarvis Shards", 'fragmentName': "shards" },
'amar': { 'title': "Amar Artifacts", 'fragmentName': "artifacts" },
'helios': { 'title': "Helios Artifacts", 'fragmentName': "artifacts" },
'shonin': { 'title': "Shonin Artifacts", 'fragmentName': "shards" },
};
return descriptions[type];
@ -239,6 +240,20 @@ window.artifact.updateLayer = function() {
}
// 2015-03-05 - shonin artifacts
if (data.shonin) {
if (data.shonin.target) {
// target portal - show the target marker. helios target marker doesn't fill like the earlier jarvis/amar targets
iconUrl = '//commondatastorage.googleapis.com/ingress.com/img/map_icons/marker_images/shonin_shard_target.png';
iconSize = 100/2; // 100 pixels - half that size works better
} else if (data.shonin.fragments) {
iconUrl = '//commondatastorage.googleapis.com/ingress.com/img/map_icons/marker_images/shonin_shard.png';
iconSize = 60/2; // 60 pixels - half that size works better
opacity = 0.6; // these often hide portals - let's make them semi transparent
}
}
if (iconUrl) {
var icon = L.icon({
iconUrl: iconUrl,