Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions config/userdata.js.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ var userInfo = {
userFollow: true,
gMapsAPIKey: "YOUR_API_KEY_HERE",
botPath: true,
actionsEnabled: false
actionsEnabled: false,
usePokemonGoMapStyle: true
};
//milliseconds
var dataUpdates = {
updateTrainer: 1000,
addCatchable: 1000,
addInventory: 5000
};
updateTrainer: 1000,
addCatchable: 1000,
addInventory: 5000
};
17 changes: 10 additions & 7 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ var mapView = {
'1002': 'Item Storage Upgrade'
},
settings: {},
mapStyles: {
pokemonGo: [
{ "featureType": "road", "elementType": "geometry.fill", "stylers": [ { "color": "#4f9f92" }, { "visibility": "on" } ] },
{ "featureType": "water", "elementType": "geometry.stroke", "stylers": [ { "color": "#feff95" }, { "visibility": "on" }, { "weight": 1.2 } ] },
{ "featureType": "landscape", "elementType": "geometry", "stylers": [ { "color": "#adff9d" }, { "visibility": "on" } ] },
{ "featureType": "water", "stylers": [ { "visibility": "on" }, { "color": "#147dd9" } ] },
{ "featureType": "poi", "elementType": "geometry.fill", "stylers": [ { "color": "#d3ffcc" } ] },{ "elementType": "labels", "stylers": [ { "visibility": "off" } ] }
]
},
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@geminiyellow Moved the styling here.

init: function() {
var self = this;
self.settings = $.extend(true, self.settings, userInfo, dataUpdates);
Expand Down Expand Up @@ -282,13 +291,7 @@ var mapView = {
},
zoom: 8,
mapTypeId: 'roadmap',
styles: [
{ "featureType": "road", "elementType": "geometry.fill", "stylers": [ { "color": "#4f9f92" }, { "visibility": "on" } ] },
{ "featureType": "water", "elementType": "geometry.stroke", "stylers": [ { "color": "#feff95" }, { "visibility": "on" }, { "weight": 1.2 } ] },
{ "featureType": "landscape", "elementType": "geometry", "stylers": [ { "color": "#adff9d" }, { "visibility": "on" } ] },
{ "featureType": "water", "stylers": [ { "visibility": "on" }, { "color": "#147dd9" } ] },
{ "featureType": "poi", "elementType": "geometry.fill", "stylers": [ { "color": "#d3ffcc" } ] },{ "elementType": "labels", "stylers": [ { "visibility": "off" } ] }
]
styles: ((self.settings.usePokemonGoMapStyle || self.settings.usePokemonGoMapStyle === undefined) ? self.mapStyles.pokemonGo : []) // disable Pokemon Go map style only when explicitly instructed to
});
self.placeTrainer();
self.addCatchable();
Expand Down