-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drawing Manager and Indoor Manager #70
Comments
Hi @dandical |
No worries I will work on it. This is waiting on your latest PR to update azure-maps-control to 2.0.31 as there are some dependencies that the latest release of drawing modules preview relies on. |
@dandical Ok I will merge this one so you can work on the latest version. |
@psrednicki Thankyou. A drawing manager creates it's own datasource by default. Features can be added to this data source to provide initial drawings to the user that they can modify. My suggestion is for it to be used as follows when providing initial features in the canvas.
To do this The AzureMapDrawingManagerProvider creates both a drawingManagerRef and dataSourceRef (the dataSourceRef is the data source created by the instantiation of the drawing manager). The only problem i have encountered in this is the use of the
I need to add the dataSourceRef to the dependency array here as the dataSource is not created by the component like it is in AzureDataSourceProvider, but is asynchronously created when the drawingManager is created when the map is ready. Any concerns with this? EDIT: To make it easier, I submitted a draft PR with my suggestions |
Im started work on Drawing Manager and its working, maybe not perfect but working. @dandical So your use case is - already have some feature(point, polygon etc.) and by drawing manager you want to mutate it. Am I right? |
Im fixed styles errors and created PR with my changes. |
@psrednicki i already implemented all mode of drawing toolbar and only edit mode is throwing error so do you have any suggestions. |
@Piyush925 Nice, good job! Can you open PR with your changes? Maybe I can check it by myself. |
@Piyush925, @psrednicki: this issue occurs because there is multiple versions of azure-maps-control in the target bundle. (LayerManager.prototype.getRenderedShapes has This can be verified by running:
I was able to get:
The fix to this issue is described in my comment to related how to use spatial layer in Azure Maps from type script |
Actually the thing that solved deduplication at bundling for me was adding I am unfamiliar with rollup, I'm checking the docs of rollup-plugin-node-externals docs and trying to make sense why externals are used for everything except |
Are we likely to see this PR being merged soon? Noticed it's been open for a while now. Really keen to see support for drawing tools. |
Seconding this, can it be added soon? |
Hi,
A project I am working in is using this wrapper but it will require azure maps drawing and indoor modules. Will the project be open to PRs with these features? I have looked into drawing and think the best way would be to make a AzureMapsDrawingManagerProvider following the same pattern so far with layers and data source components.
The text was updated successfully, but these errors were encountered: