Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70779

How to upload google map differently based on the user?

$
0
0

@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 much

cld

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70779

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>