GithubHelp home page GithubHelp logo

m0skit0 / maps-wrapper Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 5.0 668 KB

Wrapper that unifies Google and Huawei maps in a single API

License: MIT License

Kotlin 100.00%
google-maps huawei-map-kit

maps-wrapper's People

Contributors

m0skit0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

maps-wrapper's Issues

Add missing models

com.google.android.gms.maps.model.Tile
com.google.android.gms.maps.model.TileOverlayOptions
com.google.android.gms.maps.model.TileProvider
com.google.android.gms.maps.model.VisibleRegion
com.google.android.gms.maps.model.UrlTileProvider

attribute name

I consider not to use type as attribute, maybe another libraries use same attribute that will make issues.
better to rename it to wrappedMapType as example ...

Map style

Method setMapStyle is missing from CommonMap! I would like to have it, so we can set a dark theme!

Defer model instantiation to API call

Currently models are instantiated when the wrapper is instantiated. A better approach would be to defer this instantiation until the actual API is going to be called.

Missing StreetView API

StreetViewPanorama, StreetViewSource, StreetViewPanoramaOptions, StreetViewPanoramaView, SupportStreetViewPanoramaFragment (currently not supported by Huawei Maps)

GroundOverlay missing API

GroundOverlayOptions missing anchor() method
GroundOverlay missing transparency, setImage, isClickable

Check missing APIs

  • CommonMap.OnMapLoadedCallback
  • CommonMap.OnMyLocationButtonClickListener
  • CommonMap#setOnMapLoadedCallback
  • CommonMap#setOnMyLocationButtonClickListener
  • LatLngBounds#northeast
  • LatLngBounds#southwest
  • Projection#toScreenLocation
  • Projection#getVisibleRegion
  • Marker#remove
  • CameraPosition#bearing
  • GroundOverlay#zIndex
  • GroundOverlay#remove
  • GroundOverlay#setVisible
  • GroundOverlay#isVisible
  • CameraUpdateFactory#zoomBy
  • TileOverlay#setZIndex
  • LatLngBounds#contains
  • LatLngBounds#getCenter
  • CommonMap#getMyLocation
  • MapView#onStart
  • MapView#onResume
  • MapView#onPause
  • MapView#onStop
  • MapView#onDestroy
  • MapView#onLowMemory
  • MapView#onSavedInstanceState
  • BitmapDescriptionFactory.defaultMarker() (non-arg)

License

Hey,

can you add a license for your library like Apache 2.0? So we can fork, modify and use it legally?

Thanks.

Marker.remove()

Could you add the remove function to marker?

fun remove(){
  google?.remove()
  huawei?.remove()
}

CommonMap missing location API

CommonMap missing OnMyLocationButtonClickListener, OnMyLocationClickListener, setOnMyLocationButtonClickListener, setOnMyLocationClickListener

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.