Message Boards

Did liferay 6.2 supports arcgis api for javascript 3.18

Venkatesh Gowda, modified 7 Years ago.

Did liferay 6.2 supports arcgis api for javascript 3.18

New Member Post: 1 Join Date: 11/9/16 Recent Posts
Hi I am exploring life-ray portal 6.2 Stated with creating new pages in the portal.but i want to display base-map in the portal so i add simple map display code of arcgis api for JavaScript .but i will not display the base map ..If I add open-layers 3 map displaying code it will display map without any error.so i am confused with whether life-ray 6.2 portal supports Arcgis api for JavaScript if supports how to write code in the portal.can someone please help me to get out this problem. I am waiting for your valuable answers thank you..






  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
    <title>Simple Map</title>
    <link rel="stylesheet" href="https://js.arcgis.com/3.18/esri/css/esri.css">
    <style>
      html, body, #map {
        height: 100%;
        margin: 0;
        padding: 0;
      }
	 
	  
    </style>
    <script src="https://js.arcgis.com/3.18/"></script>
    <script>
      var map;

      require(["esri/map", "dojo/domReady!"], function(Map) {
        map = new Map("map", {
          basemap: "topo",  
          center: [77, 14], 
          zoom: 7
        });
      });
    </script>
  

  

  <div <div id="map"></div>
  



Attachments:

thumbnail
Olaf Kock, modified 7 Years ago.

RE: Did liferay 6.2 supports arcgis api for javascript 3.18

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
Venkatesh Gowda:
Hi I am exploring life-ray portal 6.2 Stated with creating new pages in the portal.but i want to display base-map in the portal so i add simple map display code of arcgis api for JavaScript .but i will not display the base map ..

If the HTML that you quote is your portlet's view, note that a portlet MUST NOT contain <html> <head> and <body> tags, because it's part of the portal's job to render those portions of the page. Likewise you can't just add script and style tags to the head area, but have to let the portal do this (or your theme).

Please state more details as to
  • How do you actually implement your portlet's view portion?
  • What's the behaviour, error, log that you observe?
  • What else have you tried?