Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Custom Drawing Over Map #6365

Closed
Reafidy opened this issue Sep 19, 2016 · 4 comments
Closed

Custom Drawing Over Map #6365

Reafidy opened this issue Sep 19, 2016 · 4 comments
Labels
archived Archived because of inactivity Core The cross-platform C++ core, aka mbgl feature Google Maps parity For feature parity with the Google Maps SDK for Android or iOS

Comments

@Reafidy
Copy link

Reafidy commented Sep 19, 2016

Im using the android SDK.

In Googlemaps I can use a tile overlay and override the onDraw event to basically draw whatever I need onto a canvas which then gets overlayed onto the map.

This functionality does not seem to exist in MapBox. There seems to be no way to override the ondraw event, and manually draw shapes with a canvas.

I need to draw complex shapes like polygons with many small diamonds or circles creating the borders. The native Mapbox polygons do not cut it.

All if this can be done easily in Googlemaps. I simply use the projection to convert lat/lngs to points on each tile bitmap.

See the image below.
airspace

@Reafidy Reafidy changed the title Custom Drawer Over Map Custom Drawing Over Map Sep 19, 2016
@1ec5 1ec5 added feature Google Maps parity For feature parity with the Google Maps SDK for Android or iOS labels Sep 19, 2016
@Reafidy
Copy link
Author

Reafidy commented Oct 15, 2016

Is there currently anyway at all to draw on the canvas?

If not I'm going have to revert to google maps which I really don't want to do.

@snowle0pard
Copy link

I am looking for that solution too!

@incanus
Copy link
Contributor

incanus commented May 22, 2017

Would something like #1350 meet the use case?

@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label May 30, 2017
ChrisLoer added a commit that referenced this issue Mar 20, 2018
Clamps perspective ratios in shaders.
Fixes issue #11487.
Port of GL JS PR #6365.
ChrisLoer added a commit that referenced this issue Mar 21, 2018
Clamps perspective ratios in shaders.
Fixes issue #11487.
Port of GL JS PR #6365.
@stale stale bot added the archived Archived because of inactivity label Nov 6, 2018
@stale
Copy link

stale bot commented Nov 29, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity Core The cross-platform C++ core, aka mbgl feature Google Maps parity For feature parity with the Google Maps SDK for Android or iOS
Projects
None yet
Development

No branches or pull requests

5 participants