forked from kleeb/flutter-mapbox-gl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Expose CompassViewPosition flutter-mapbox-gl#344 (flutter-mapbox-gl#346) Co-authored-by: emre.yalcin <emre.yalcin@netcad.com.tr> * Readme: location features on Android (flutter-mapbox-gl#342) * Update CONTRIBUTING.md (flutter-mapbox-gl#366) * Release 0.8.0 (flutter-mapbox-gl#390) * [release] update CHANGELOG.md for release of v0.8.0 * [release] update version numbers to v0.8.0 * Update CONTRIBUTING.md (flutter-mapbox-gl#401) Fix stale pull, issues & changelog urls in the contributing guide. * Fix data parameter for addLine and addCircle (flutter-mapbox-gl#388) * Split padding values in CameraUpdate.newLatLngBounds() (flutter-mapbox-gl#382) * Split padding values in CameraUpdate.newLatLngBounds() * Remove old unused code Co-authored-by: Tobrun <tobrun.van.nuland@gmail.com> * Re-enable attribution on android (flutter-mapbox-gl#383) * Upgrade Android annotation plugin to v0.9 (flutter-mapbox-gl#381) * web: ignore myLocationTrackingMode if myLocationEnabled is false (flutter-mapbox-gl#363) * Add methods to access projection (flutter-mapbox-gl#380) * remove bitmap; add projection access * Replace ScreenLocation with Point; expand iOS implementation * fix iOS with guard let * iOS: cast to NSObject * fix typo * round result of toScreenLocation() * Revert "round result of toScreenLocation()" This reverts commit 838726a. * Docs: document rounding behaviour * Add Fill API support (flutter-mapbox-gl#49) * [flutter] [android] - add fill support * Resolved merge conflict. * A first working version for ios (after some extensive rebasing). * Minor cleanup * Minor cleanup. * Fix broken build Android. * A working version for Android. * Minor cleanup. * Added fill pattern example. Works on Android not on iOS. Seems to break consecutive fills though. * For the first queried feature (when filter is set) create a fill. * Fix lint issue (unused method). * Updated code formatting. * Added interior polygon to iOS. * [docs] update readme support table * fixup Co-authored-by: Timothy Sealy <timothy.sealy@gmail.com> * Listen to OnUserLocationUpdated to provide user location to app (flutter-mapbox-gl#237) * Listen to OnUserLocationUpdated to provide user location to app While the `myLocationEnabled` property is set to `true`, this method is called whenever a new location update is received by the map view. iOS only, needs Android. I did check that the location properties carried here are also provided in Android's [Location][1] object. [1]: https://developer.android.com/reference/android/location/Location * add android, web; fix conflicts Co-authored-by: m0nac0 <58807793+m0nac0@users.noreply.github.com> Co-authored-by: Tobrun <tobrun.van.nuland@gmail.com> * fix: correct bug on android where checking on activity lifecycles that were disposed (flutter-mapbox-gl#266) Co-authored-by: leo cornillon <leo.cornillon.dev@gmail.com> Co-authored-by: m0nac0 <58807793+m0nac0@users.noreply.github.com> * Add support for custom font stack in symbol options (flutter-mapbox-gl#359) * fix memory leak caused by strong self reference (flutter-mapbox-gl#370) * Basic ImageSource Support (flutter-mapbox-gl#409) * Introduce LatLngQuad Introduce the LatLngQuad object which will be useful to pass in all the required parameters to the addSource() method we will define later. * Introduce addSource() Method Add the addSource(..) method to the mapbox_gl_platform_interface.dart * Add addSource MethodChannel * Place ImageSource Android - Introduce the PlaceSource page as a playground - Add 'addImageSource', 'removeImageSource', 'addLayer' & 'removeLayer' apis - Implement Android platform interface * iOS ImageSource Implementation Implement addImageSource, removeImageSource, addLayer & removeLayer on iOS. * Fix iOS CoordinateQuad Mapping Co-authored-by: Tobrun <tobrun.van.nuland@gmail.com> * Get meters per pixel at latitude (flutter-mapbox-gl#416) * fix git refferences * fix git refferences * implementation of getMetersPerPixelAtLatitude * getMetersPerPixelAtLatitude * fix refference paths * Android implementation and Example updated. * added comments to getMetersPerPixelAtLatitude method * IOS implementation * Removed modified lines from pubspec.yaml files * web implementation Co-authored-by: Tobrun <tobrun.van.nuland@gmail.com> * fix onStyleLoadedCallback (flutter-mapbox-gl#418) * fix onStyleLoadedCallback * fix onStyleLoadedCallback called before onMapCreated Co-authored-by: Tobrun <tobrun.van.nuland@gmail.com> * Release 0.9.0 * update version numbers for v0.9.0 release * fix ios onSymbolTapped Co-authored-by: emreuguryalcintr <50848628+emreuguryalcintr@users.noreply.github.com> Co-authored-by: emre.yalcin <emre.yalcin@netcad.com.tr> Co-authored-by: m0nac0 <58807793+m0nac0@users.noreply.github.com> Co-authored-by: Tobrun <tobrun.van.nuland@gmail.com> Co-authored-by: cuberob <robdeknegt@gmail.com> Co-authored-by: qbouchat <48958612+qbouchat@users.noreply.github.com> Co-authored-by: Timothy Sealy <timothy.sealy@gmail.com> Co-authored-by: Nathan <nathan@transit.app> Co-authored-by: Leo Cornillon <corle.cugly@gmail.com> Co-authored-by: leo cornillon <leo.cornillon.dev@gmail.com> Co-authored-by: Philip Lindberg <philip.c.lindberg@gmail.com> Co-authored-by: Thomas Kröniger <30893720+thirteenthstep@users.noreply.github.com> Co-authored-by: cuberob <git@cuberob.com> Co-authored-by: GULERTOLGA <gulertolga@gmail.com> Co-authored-by: Andrea Valenzano <andr3a689@gmail.com>
- Loading branch information
1 parent
40d0419
commit 34769d9
Showing
48 changed files
with
1,843 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
android/src/main/java/com/mapbox/mapboxgl/FillBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// This file is generated. | ||
|
||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package com.mapbox.mapboxgl; | ||
|
||
import com.mapbox.mapboxsdk.geometry.LatLng; | ||
import com.mapbox.mapboxsdk.plugins.annotation.Fill; | ||
import com.mapbox.mapboxsdk.plugins.annotation.FillManager; | ||
import com.mapbox.mapboxsdk.plugins.annotation.FillOptions; | ||
|
||
import java.util.List; | ||
|
||
class FillBuilder implements FillOptionsSink { | ||
private final FillManager fillManager; | ||
private final FillOptions fillOptions; | ||
|
||
FillBuilder(FillManager fillManager) { | ||
this.fillManager = fillManager; | ||
this.fillOptions = new FillOptions(); | ||
} | ||
|
||
Fill build() { | ||
return fillManager.create(fillOptions); | ||
} | ||
|
||
@Override | ||
public void setFillOpacity(float fillOpacity) { | ||
fillOptions.withFillOpacity(fillOpacity); | ||
} | ||
|
||
@Override | ||
public void setFillColor(String fillColor) { | ||
fillOptions.withFillColor(fillColor); | ||
} | ||
|
||
@Override | ||
public void setFillOutlineColor(String fillOutlineColor) { | ||
fillOptions.withFillOutlineColor(fillOutlineColor); | ||
} | ||
|
||
@Override | ||
public void setFillPattern(String fillPattern) { | ||
fillOptions.withFillPattern(fillPattern); | ||
} | ||
|
||
@Override | ||
public void setGeometry(List<List<LatLng>> geometry) { | ||
fillOptions.withGeometry(Convert.interpretListLatLng(geometry)); | ||
} | ||
|
||
@Override | ||
public void setDraggable(boolean draggable) { | ||
fillOptions.withDraggable(draggable); | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
android/src/main/java/com/mapbox/mapboxgl/FillController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// This file is generated. | ||
|
||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package com.mapbox.mapboxgl; | ||
|
||
import android.graphics.Color; | ||
import com.mapbox.mapboxsdk.geometry.LatLng; | ||
import com.mapbox.mapboxsdk.plugins.annotation.Fill; | ||
import com.mapbox.mapboxsdk.plugins.annotation.FillManager; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Controller of a single Fill on the map. | ||
*/ | ||
class FillController implements FillOptionsSink { | ||
private final Fill fill; | ||
private final OnFillTappedListener onTappedListener; | ||
private boolean consumeTapEvents; | ||
|
||
FillController(Fill fill, boolean consumeTapEvents, OnFillTappedListener onTappedListener) { | ||
this.fill = fill; | ||
this.consumeTapEvents = consumeTapEvents; | ||
this.onTappedListener = onTappedListener; | ||
} | ||
|
||
boolean onTap() { | ||
if (onTappedListener != null) { | ||
onTappedListener.onFillTapped(fill); | ||
} | ||
return consumeTapEvents; | ||
} | ||
|
||
void remove(FillManager fillManager) { | ||
fillManager.delete(fill); | ||
} | ||
|
||
@Override | ||
public void setFillOpacity(float fillOpacity) { | ||
fill.setFillOpacity(fillOpacity); | ||
} | ||
|
||
@Override | ||
public void setFillColor(String fillColor) { | ||
fill.setFillColor(Color.parseColor(fillColor)); | ||
} | ||
|
||
@Override | ||
public void setFillOutlineColor(String fillOutlineColor) { | ||
fill.setFillOutlineColor(Color.parseColor(fillOutlineColor)); | ||
} | ||
|
||
@Override | ||
public void setFillPattern(String fillPattern) { | ||
fill.setFillPattern(fillPattern); | ||
} | ||
|
||
@Override | ||
public void setGeometry(List<List<LatLng>> geometry) { | ||
fill.setGeometry(Convert.interpretListLatLng(geometry)); | ||
} | ||
|
||
@Override | ||
public void setDraggable(boolean draggable) { | ||
fill.setDraggable(draggable); | ||
} | ||
|
||
public void update(FillManager fillManager) { | ||
fillManager.update(fill); | ||
} | ||
} |
Oops, something went wrong.