Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OnLoad callback #30

Open
TomasPlatzer opened this issue Jan 4, 2019 · 0 comments
Open

OnLoad callback #30

TomasPlatzer opened this issue Jan 4, 2019 · 0 comments

Comments

@TomasPlatzer
Copy link

TomasPlatzer commented Jan 4, 2019

Would it be possible to add some OnLoad callback which would have Microsoft object from window and reference map object as the parameters ?

This would be very helpful, because any missing functionality could be added inside host react component.

What I mean is something like this:

		if(!map[mapReference]){
			map[mapReference] = new Microsoft.Maps.Map(mapReference, {
				credentials: bingmapKey
			});
			if(props.onLoad){
				props.onLoad(Microsoft, map[mapReference]);
			}
		}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant