File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 4.0.1 - 2022-05-18
2+ ### Fixed
3+ - Fix Geo Location Token only allowing string (Fixes #343 )
4+
5+ ## 4.0.0 - 2022-05-10
6+ ### Fixed
7+ - Mostly functional, only slightly buggy, Craft 4 Support
8+
19## 3.9.3 - 2022-01-17
210### Fixed
311- Fix Mapbox Forbidden issue (Fixes #218 , via @Saboteur777 )
Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "scripts" : {
6- "serve" : " vue-cli-service serve" ,
6+ "serve" : " PORT=8080 vue-cli-service serve" ,
77 "build" : " vue-cli-service build" ,
88 "lint" : " vue-cli-service lint"
99 },
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module.exports = {
55 https : true ,
66 headers : { "Access-Control-Allow-Origin" : "*" } ,
77 disableHostCheck : true ,
8+ port : 8080 ,
89 } ,
910 configureWebpack : config => {
1011 config . output . library = 'EtherMaps' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -103,11 +103,11 @@ public static function getQueryInputDefinitions (): array
103103
104104 public static function getType (): Type
105105 {
106- if ($ type = GqlEntityRegistry::getEntity (static ::class ))
106+ if ($ type = GqlEntityRegistry::getEntity (static ::getName () ))
107107 return $ type ;
108108
109109 return GqlEntityRegistry::createEntity (
110- static ::class ,
110+ static ::getName () ,
111111 new ObjectType ([
112112 'name ' => static ::getName (),
113113 'fields ' => static ::class . '::getFieldDefinitions ' ,
Original file line number Diff line number Diff line change @@ -24,20 +24,20 @@ abstract class BaseLocation extends Model
2424 // Properties
2525 // =========================================================================
2626
27- /** @var float */
28- public float $ lat ;
27+ /** @var float|null */
28+ public ? float $ lat = null ;
2929
30- /** @var float */
31- public float $ lng ;
30+ /** @var float|null */
31+ public ? float $ lng = null ;
3232
33- /** @var string */
34- public string $ address ;
33+ /** @var string|null */
34+ public ? string $ address = null ;
3535
36- /** @var Parts */
37- public mixed $ parts ;
36+ /** @var PartsLegacy| Parts|array|null */
37+ public PartsLegacy | Parts | array | null $ parts = null ;
3838
39- /** @var string */
40- public mixed $ what3words ;
39+ /** @var string|null */
40+ public ? string $ what3words = null ;
4141
4242 // Constructor
4343 // =========================================================================
Original file line number Diff line number Diff line change @@ -27,22 +27,22 @@ class Map extends BaseLocation
2727 // Properties
2828 // =========================================================================
2929
30- /** @var int */
31- public int $ id ;
30+ /** @var int|null */
31+ public ? int $ id = null ;
3232
33- /** @var int */
34- public int $ ownerId ;
33+ /** @var int|null */
34+ public ? int $ ownerId = null ;
3535
36- /** @var int */
37- public int $ ownerSiteId ;
36+ /** @var int|null */
37+ public ? int $ ownerSiteId = null ;
3838
39- /** @var int */
40- public int $ fieldId ;
39+ /** @var int|null */
40+ public ? int $ fieldId = null ;
4141
4242 /** @var int */
4343 public int $ zoom = 15 ;
4444
45- /** @var float|null */
45+ /** @var int| float|null */
4646 public int |null |float $ distance = null ;
4747
4848 // Constructor
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ class Settings extends Model
7777 /** @var string The geo-location service */
7878 public string $ geoLocationService = GeoLocationService::None;
7979
80- /** @var string The token for the geo-location service */
81- public string $ geoLocationToken = '' ;
80+ /** @var string|array The token for the geo-location service */
81+ public string | array $ geoLocationToken = '' ;
8282
8383 /** @var string|int How long to cache IP look-ups for (set to 0 to disable caching) */
8484 public string |int $ geoLocationCacheDuration = 'P2M ' ;
Original file line number Diff line number Diff line change 6060 </header >
6161
6262 <section class =" maps-map" >
63- {% for key , label in mapTileOptions if key != ' 0' and key != ' 1' %}
64- {% set x1 = craft .app .assetManager .getPublishedUrl (' @simplemapimages/' ~ (key |replace ({' .' :' -' ,' /' :' -' })) ~ ' -1x.jpg' , true ) %}
65- {% set x2 = craft .app .assetManager .getPublishedUrl (' @simplemapimages/' ~ (key |replace ({' .' :' -' ,' /' :' -' })) ~ ' .jpg' , true ) %}
66- <image -fade-on-load
67- src =" {{ x1 }}"
68- srcset =" {{ x1 }} 1x, {{ x2 }} 2x"
69- alt =" {{ label is iterable ? label .label : label }}"
70- :show =" mapTiles === '{{ key }}'"
71- ></image -fade-on-load >
63+ {% for key , label in mapTileOptions %}
64+ {% if key != ' 0' and key != ' 1' %}
65+ {% set x1 = craft .app .assetManager .getPublishedUrl (' @simplemapimages/' ~ (key |replace ({' .' :' -' ,' /' :' -' })) ~ ' -1x.jpg' , true ) %}
66+ {% set x2 = craft .app .assetManager .getPublishedUrl (' @simplemapimages/' ~ (key |replace ({' .' :' -' ,' /' :' -' })) ~ ' .jpg' , true ) %}
67+ <image -fade-on-load
68+ src =" {{ x1 }}"
69+ srcset =" {{ x1 }} 1x, {{ x2 }} 2x"
70+ alt =" {{ label is iterable ? label .label : label }}"
71+ :show =" mapTiles === '{{ key }}'"
72+ ></image -fade-on-load >
73+ {% endif %}
7274 {% endfor %}
7375
7476 {% namespace ' settings' %}
@@ -593,12 +595,13 @@ hr {
593595}
594596
595597.maps-header h1 {
598+ display: flex;
599+ align-items: center;
596600 font-size: 0;
597601 margin-bottom: 0;
598602}
599603.maps-header svg {
600604 position: relative;
601- top: -3px;
602605 width: 30px;
603606 height: 30px;
604607 vertical-align: bottom;
748751}
749752.maps-style select {
750753 width: 100%;
754+ height: 80px;
751755 padding: 32px 40px 13px 20px;
752756 font-size: 24px;
753757
You can’t perform that action at this time.
0 commit comments