Forum Discussion
SPFx Bing Maps Callback Issue
Cheers, Adam
Hi Adam Reid ,
sorry you don't tag me, I don't see your reply 🙂
What do yo mean about "Assume I'll have to implement my own security as I'll loose access to SharePoint http client?"
While using isolated webpart, you have already access to SharePoint context, and every other context you need. Isolated webpart it is simply an iFrame in another dns domain, but always on SharePoint context. You need to pay attention to UI approach, because your webpart live inside an iFrame, so you could meet some trouble.
Cheers,
Federico
- Adam ReidNov 11, 2019Copper Contributor
Sorry FedericoPorceddu82 🙂
Thanks for clarifying this...I was under the impression I would lose the SharePoint context inside the iFrame but it's good to know this isn't the case.
You mention I could encounter some issues; is there anything obvious I should be aware of?
Thanks again, Adam.
- Nov 11, 2019
Hi Adam Reid
I mean usual trouble in UI when you embed iFrames like resize, reload, mobile
etc.
You can already try to use (it is just a flag in config.json) so you
can see what I mean 🙂
Please refer to https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/isolated-web-parts for architectural point of view, and come back if you have any questions 🙂
Cheers
Federico
- Adam ReidNov 11, 2019Copper Contributor
Thanks FedericoPorceddu82. I've now tried this and can confirm it does solve my original issue.
Unfortunately, as you suspected, I've come up against some of the issues relating to it being in an iFrame such as unpredictable property panes, css issues, unwanted white space and general slowness. I think I'm going to revert back to what I had before and live with the original limitation than with these issues.
Thanks for your help anyway, I learned something new 🙂
Adam