angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

How do I implement DrawingControls for shapes?

Open IAMtheIAM opened this issue 9 years ago • 11 comments

I couldnt find the API for DrawingControls, in order to implement the Drawing Tools google maps api

How do we go about implementing this into the components?

IAMtheIAM avatar Mar 24 '17 22:03 IAMtheIAM

@IAMtheIAM this is not supported right know. current solution would be to write a custom component for this use case.

sebholstein avatar Mar 30 '17 19:03 sebholstein

I've implemented a custom component for this the other day along with custom overlays. I'd be happy to share the code if you'd like.

tuneis avatar Mar 31 '17 02:03 tuneis

@tuneis a Pull Request would be awesome so that everyone can benefit from that :)

sebholstein avatar Mar 31 '17 05:03 sebholstein

@SebastianM When I get some time I can do that for sure. I'll have to rework it a bit because it's more of a helper class than a component. Perhaps making it a service would be best. What do you think?

tuneis avatar Apr 02 '17 01:04 tuneis

@tuneis would you mind publicizing what you have now? I would gladly use and help refactor for a project :)

seanmcoleman avatar Apr 07 '17 15:04 seanmcoleman

@tuneis Could you please share your custom component?

mateysh avatar Jul 04 '17 07:07 mateysh

@tuneis, please, could you share your custom component with us?

murielfv avatar Jul 18 '17 19:07 murielfv

Sorry for the extremely slow response on this. I've been crazy busy and have had little time to make this any better but I will share what I have. It's essentially just a collection of helper files from a project I was on in the past so it may or may not work with your situation. Feel free to do what you will with these files, modify the source etc. If anything get's used to contribute to this project I would appreciate the credit. Thanks!

gmap.zip

tuneis avatar Jul 18 '17 21:07 tuneis

Has anyone had any luck with this or maybe have a working code example? I just need to be able to draw polygons in a nice clean way. I'm looking at the tools @tuneis provided and looks promising but possibly over-complicated for what I need, plus I'm getting a ton of compile time errors like "cannot find namespace "google" and call target not containing signatures for "super()"

Methodician avatar Jan 06 '18 22:01 Methodician

Hi, I've just submitted a pull request to implement the drawing manager.

Alexandre-Herve avatar Feb 27 '18 12:02 Alexandre-Herve

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 13 '18 20:11 stale[bot]