Last changes not published
This commit is contained in:
parent
ac65ccf990
commit
21ec08303a
43 changed files with 607 additions and 613 deletions
|
|
@ -2,30 +2,33 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_map/flutter_map.dart';
|
||||
import 'package:flutter_map/plugin_api.dart';
|
||||
import 'package:latlong/latlong.dart';
|
||||
import 'fireMarkerIcon.dart';
|
||||
|
||||
import 'fireMarkType.dart';
|
||||
import 'fireMarkerIcon.dart';
|
||||
|
||||
class FireMarker extends Marker {
|
||||
|
||||
FireMarker(LatLng pos, type,
|
||||
[onTap = null, AnchorPos anchor = AnchorPos.center, Anchor anchorOverride])
|
||||
[onTap,
|
||||
// AnchorPos anchor = AnchorPos.center,
|
||||
Anchor anchorOverride])
|
||||
: super(
|
||||
width: 80.0,
|
||||
height: 80.0,
|
||||
point: pos,
|
||||
builder: (ctx) => new Container(
|
||||
child: new GestureDetector(
|
||||
child: new FireMarkerIcon(type), onTap: onTap)
|
||||
),
|
||||
anchor: anchor,
|
||||
anchorOverride: anchorOverride ?? type == FireMarkType.position
|
||||
? new Anchor(40.0, 20.0)
|
||||
child: new GestureDetector(
|
||||
child: new FireMarkerIcon(type), onTap: onTap)),
|
||||
// anchor: anchor,
|
||||
anchorPos: anchorOverride ?? type == FireMarkType.position
|
||||
? AnchorPos.exactly(new Anchor(40.0, 20.0))
|
||||
: type == FireMarkType.fire
|
||||
? new Anchor(40.0, 24.0)
|
||||
? AnchorPos.exactly(new Anchor(40.0, 24.0))
|
||||
: type == FireMarkType.pixel
|
||||
? null // auto calculate with height/width in Marker
|
||||
// industries, etc (below)
|
||||
// FIXME check if this is accurate
|
||||
: new Anchor(40.0, 35.0),
|
||||
);
|
||||
: AnchorPos.exactly(new Anchor(40.0, 35.0)),
|
||||
) {
|
||||
// anchor = anchorOverride;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue