Skip to content

Commit

Permalink
Merge pull request IITC-CE#2 from jonatkins/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
insane210 committed May 27, 2015
2 parents fce1561 + 495a635 commit a4ec9ba
Show file tree
Hide file tree
Showing 126 changed files with 2,234 additions and 480 deletions.
17 changes: 15 additions & 2 deletions code/artifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ window.artifact.requestData = function() {
if (isIdle()) {
artifact.idle = true;
} else {
// new API available in stock (2015-05-21) - 'getArtifactPortals'
// stock still uses this one, and the new method doesn't yet return anything, but they might be changing things soon...
window.postAjax('artifacts', {}, artifact.handleSuccess, artifact.handleError);
}
}
Expand Down Expand Up @@ -149,6 +151,7 @@ window.artifact.getArtifactDescriptions = function(type) {
'amar': { 'title': "Amar Artifacts", 'fragmentName': "artifacts" },
'helios': { 'title': "Helios Artifacts", 'fragmentName': "artifacts" },
'shonin': { 'title': "Sh\u014Dnin Shards", 'fragmentName': "shards" },
'lightman': { 'title': "Lightman Shards", 'fragmentName': "shards" },
};

return descriptions[type];
Expand Down Expand Up @@ -223,7 +226,6 @@ window.artifact.updateLayer = function() {
iconSize = 60/2; // 60 pixels - half that size works better
opacity = 0.6; // these often hide portals - let's make them semi transparent
}

}

// 2014-08-09 - helios artifacts. original guess was slightly wrong
Expand All @@ -237,7 +239,6 @@ window.artifact.updateLayer = function() {
iconSize = 60/2; // 60 pixels - half that size works better
opacity = 0.6; // these often hide portals - let's make them semi transparent
}

}

// 2015-03-05 - shonin shards
Expand All @@ -251,7 +252,19 @@ window.artifact.updateLayer = function() {
iconSize = 60/2; // 60 pixels - half that size works better
opacity = 0.6; // these often hide portals - let's make them semi transparent
}
}

// 2015-04-22 - lightman fragments (guessed)
if (data.lightman) {
if (data.lightman.target) {
// target portal - show the target marker.
iconUrl = '//commondatastorage.googleapis.com/ingress.com/img/map_icons/marker_images/lightman_shard_target.png';
iconSize = 100/2; // 100 pixels - half that size works better
} else if (data.lightman.fragments) {
iconUrl = '//commondatastorage.googleapis.com/ingress.com/img/map_icons/marker_images/lightman_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) {
Expand Down
4 changes: 2 additions & 2 deletions code/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ window.setupMap = function() {
center: [0,0],
zoom: 1,
zoomControl: (typeof android !== 'undefined' && android && android.showZoom) ? android.showZoom() : true,
minZoom: 1,
minZoom: MIN_ZOOM,
// zoomAnimation: false,
markerZoomAnimation: false,
bounceAtZoomLimits: false
Expand Down Expand Up @@ -586,11 +586,11 @@ function boot() {
}});

window.extractFromStock();
window.iitc_bg.init(); //NOTE: needs to be early (before any requests sent), but after extractFromStock()
window.setupIdle();
window.setupTaphold();
window.setupStyles();
window.setupDialogs();
window.setupDataTileParams();
window.setupMap();
window.setupOMS();
window.search.setup();
Expand Down
Loading

0 comments on commit a4ec9ba

Please sign in to comment.