Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Omar M
Including google map api call in a portlet
5. April 2013 07:44
Antwort

Omar M

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 4. April 2013

Neue Beiträge

I'm trying to include a google map api call in a custom portlet.

In previous versions of liferay I was able to do this by adding it to the liferay-portlet.xml file

1<header-portlet-javascript>
2http://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=visualization
3</header-portlet-javascript>


Doing this now appends the url to my domain name.
1http://localhost:port/name-of-projecthttp://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=visualization


Is there a new approach to do this?

Any suggestions?

Regards,
Omar