forked from MapComplete/MapComplete
		
	new color and icon for navigation
This commit is contained in:
		
							parent
							
								
									bd1b29e344
								
							
						
					
					
						commit
						3a16518bcb
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -202,7 +202,7 @@ export class InitUiElements {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const plus = new MapControlButton(
 | 
					    const plus = new MapControlButton(
 | 
				
			||||||
      new CenterFlexedElement(
 | 
					      new CenterFlexedElement(
 | 
				
			||||||
        Img.AsImageElement(Svg.plus_zoom, "", "width:1.5rem;height:1.5rem")
 | 
					        Img.AsImageElement(Svg.plus_zoom, "", "width:1.25rem;height:1.25rem")
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
    ).onClick(() => {
 | 
					    ).onClick(() => {
 | 
				
			||||||
      State.state.locationControl.data.zoom++;  
 | 
					      State.state.locationControl.data.zoom++;  
 | 
				
			||||||
| 
						 | 
					@ -211,7 +211,7 @@ export class InitUiElements {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const min = new MapControlButton(
 | 
					    const min = new MapControlButton(
 | 
				
			||||||
      new CenterFlexedElement(
 | 
					      new CenterFlexedElement(
 | 
				
			||||||
        Img.AsImageElement(Svg.min_zoom, "", "width:1.5rem;height:1.5rem")
 | 
					        Img.AsImageElement(Svg.min_zoom, "", "width:1.25rem;height:1.25rem")
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
    ).onClick(() => {
 | 
					    ).onClick(() => {
 | 
				
			||||||
      State.state.locationControl.data.zoom--;
 | 
					      State.state.locationControl.data.zoom--;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,16 +73,16 @@ export default class GeoLocationHandler extends VariableUiElement {
 | 
				
			||||||
        (hasLocation) => {
 | 
					        (hasLocation) => {
 | 
				
			||||||
          if (hasLocation) {
 | 
					          if (hasLocation) {
 | 
				
			||||||
            return new CenterFlexedElement(
 | 
					            return new CenterFlexedElement(
 | 
				
			||||||
              Img.AsImageElement(Svg.location, "", "width:1.5rem;height:1.5rem")
 | 
					              Img.AsImageElement(Svg.location, "", "width:1.25rem;height:1.25rem")
 | 
				
			||||||
            ); // crosshair_blue_ui()
 | 
					            ); // crosshair_blue_ui()
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          if (isActive.data) {
 | 
					          if (isActive.data) {
 | 
				
			||||||
            return new CenterFlexedElement(
 | 
					            return new CenterFlexedElement(
 | 
				
			||||||
              Img.AsImageElement(Svg.location, "", "width:1.5rem;height:1.5rem")
 | 
					              Img.AsImageElement(Svg.location, "", "width:1.25rem;height:1.25rem")
 | 
				
			||||||
            ); // crosshair_blue_center_ui
 | 
					            ); // crosshair_blue_center_ui
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
          return new CenterFlexedElement(
 | 
					          return new CenterFlexedElement(
 | 
				
			||||||
            Img.AsImageElement(Svg.location, "", "width:1.5rem;height:1.5rem")
 | 
					            Img.AsImageElement(Svg.location, "", "width:1.25rem;height:1.25rem")
 | 
				
			||||||
          ); //crosshair_ui
 | 
					          ); //crosshair_ui
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        [isActive]
 | 
					        [isActive]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue