@ioclaudio wrote:
Hi,
I’d like the users of my app with the role1 load the GoogleMap in this way:
https://maps.googleapis.com/maps/api/js?key=<mycode>
while the users with the role2 load the map in this way:
https://maps.googleapis.com/maps/api/js?key=<mycode>&libraries=drawing
In the head of index.html I have:
<script src="https://maps.googleapis.com/maps/api/js?key=<mycode>"></script>
Which is the best way to change the script tag dynamically?
The map is shown after the login phase.I want to do this because I fear that the call counter of the Google drawing library will increase too much even if the users with role2 do not use the functions of the drawing library.
Any idea?
Thank you very muchcld
Posts: 1
Participants: 1