Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22f4abd82d
|
||
|
|
bf27f15709 | ||
|
|
db3094eb62
|
||
|
|
77c71ab2da | ||
|
|
8327cd975a
|
No files matched your search
@@ -9,7 +9,7 @@ This is the MapGuesser Application project. This is a game about guessing where
|
|||||||
The first step is obviously cloning the repository to your machine:
|
The first step is obviously cloning the repository to your machine:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://bitbucket.org/esoko/mapguesser.git
|
git clone https://gitea.e5tv.hu/esoko/mapguesser.git
|
||||||
```
|
```
|
||||||
|
|
||||||
All the commands listed here should be executed from the repository root.
|
All the commands listed here should be executed from the repository root.
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ pipelines:
|
|||||||
- apt-get update && apt-get install -y unzip
|
- apt-get update && apt-get install -y unzip
|
||||||
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
- composer install
|
- composer install
|
||||||
- vendor/bin/phpstan analyse -c phpstan.neon --error-format=prettyJson > static_code_analysis_results.json
|
- php -d memory_limit=1G vendor/bin/phpstan analyse -c phpstan.neon --error-format=prettyJson > static_code_analysis_results.json
|
||||||
@@ -8,9 +8,12 @@
|
|||||||
var imgContainer = imgContainers[i];
|
var imgContainer = imgContainers[i];
|
||||||
|
|
||||||
var imgSrc = 'https://maps.googleapis.com/maps/api/staticmap?size=350x175&' +
|
var imgSrc = 'https://maps.googleapis.com/maps/api/staticmap?size=350x175&' +
|
||||||
'scale=' + (window.devicePixelRatio >= 2 ? 2 : 1) + '&' +
|
'scale=' + (window.devicePixelRatio >= 2 ? 2 : 1) + '&path=color:0x0000ff40|weight:3|fillcolor:0x0000ff20|' +
|
||||||
'visible=' + imgContainer.dataset.boundSouthLat + ',' + imgContainer.dataset.boundWestLng + '|' +
|
imgContainer.dataset.boundSouthLat + ',' + imgContainer.dataset.boundWestLng + '|' +
|
||||||
imgContainer.dataset.boundNorthLat + ',' + imgContainer.dataset.boundEastLng +
|
imgContainer.dataset.boundNorthLat + ',' + imgContainer.dataset.boundWestLng + '|' +
|
||||||
|
imgContainer.dataset.boundNorthLat + ',' + imgContainer.dataset.boundEastLng + '|' +
|
||||||
|
imgContainer.dataset.boundSouthLat + ',' + imgContainer.dataset.boundEastLng + '|' +
|
||||||
|
imgContainer.dataset.boundSouthLat + ',' + imgContainer.dataset.boundWestLng +
|
||||||
'&key=' + GOOGLE_MAPS_JS_API_KEY;
|
'&key=' + GOOGLE_MAPS_JS_API_KEY;
|
||||||
|
|
||||||
imgContainer.style.backgroundImage = 'url("' + imgSrc + '")';
|
imgContainer.style.backgroundImage = 'url("' + imgSrc + '")';
|
||||||
|
|||||||
Reference in new issue
Block a user