def get_frontend_media(self, instance):
style_options = instance.get_style_options()<EOL>extra_js = style_options.get('<STR_LIT>', None)<EOL>googlemaps_js = "<STR_LIT>".format(get_language())<EOL>if appsettings.GOOGLE_MAPS_API_KEY:<EOL><INDENT>googlemaps_js = "<STR_LIT>".format(googlemaps_js, appsettings.GOOGLE_MAPS_API_KEY)<EOL><DEDENT>css = appsettings.FLUENTCMS_GOOGLEMAPS_CSS<EOL>js = [googlemaps_js]<EOL>js.extend(appsettings.FLUENTCMS_GOOGLEMAPS_JS)<EOL>if extra_js:<EOL><INDENT>js.extend(extra_js)<EOL><DEDENT>return Media(js=js, css=css)<EOL>
Provide FrontendMedia dynamically.
It can differ per request and differ per style.
:type instance: MapItem