OnLoad callback
TomasPlatzer opened this issue · 0 comments
TomasPlatzer commented
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]);
}
}