<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Javascript API mirroring ArcGIS.com in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-mirroring-arcgis-com/m-p/267055#M24684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Prior to my working on this project, we had and Javascript API web mapping application.&amp;nbsp; At some point, they decided to switch the application to consuming maps via the ArcGIS.com viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, the web page uses an iframe to consume the ArcGIS.com map and some other folks have spent tons of time tweaking it (especially the pop-ups, links to metadata etc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem that I have is that the ArcGIS.com viewer is fairly basic and you cannot customize very many things.&amp;nbsp; For instance, I would like to be able to draw a polygon on the screen and get custom reporting out, I would also like to be able to have more sophisticated pop-ups (e.g. javascript calculations).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ability to draw on the map and get reporting out is a javascript/database function I've seen in other websites so I know it can be done, plus I was thinking of linking it through Business Analyst anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I most efficiently get what I want?&amp;nbsp; Can the Javascript API handle/accept the pop-up stuff that was done in ArcGIS.com ?&amp;nbsp; I don't want to redo all the work that is already done on the pop-ups but I need more capabilities than the ArcGIS.com viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2012 19:29:59 GMT</pubDate>
    <dc:creator>DonaldCatanzaro</dc:creator>
    <dc:date>2012-12-12T19:29:59Z</dc:date>
    <item>
      <title>Javascript API mirroring ArcGIS.com</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-mirroring-arcgis-com/m-p/267055#M24684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Prior to my working on this project, we had and Javascript API web mapping application.&amp;nbsp; At some point, they decided to switch the application to consuming maps via the ArcGIS.com viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, the web page uses an iframe to consume the ArcGIS.com map and some other folks have spent tons of time tweaking it (especially the pop-ups, links to metadata etc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem that I have is that the ArcGIS.com viewer is fairly basic and you cannot customize very many things.&amp;nbsp; For instance, I would like to be able to draw a polygon on the screen and get custom reporting out, I would also like to be able to have more sophisticated pop-ups (e.g. javascript calculations).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ability to draw on the map and get reporting out is a javascript/database function I've seen in other websites so I know it can be done, plus I was thinking of linking it through Business Analyst anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I most efficiently get what I want?&amp;nbsp; Can the Javascript API handle/accept the pop-up stuff that was done in ArcGIS.com ?&amp;nbsp; I don't want to redo all the work that is already done on the pop-ups but I need more capabilities than the ArcGIS.com viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-mirroring-arcgis-com/m-p/267055#M24684</guid>
      <dc:creator>DonaldCatanzaro</dc:creator>
      <dc:date>2012-12-12T19:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API mirroring ArcGIS.com</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-mirroring-arcgis-com/m-p/267056#M24685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;have you seen our JavaScript API samples related to web maps?&amp;nbsp; they demonstrate how to reference an arcgis.com web map by id and pull the layers (popups and all) into a custom application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this specific &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/ags_createwebmapid.html" rel="nofollow noopener noreferrer" target="_blank"&gt;sample&lt;/A&gt;&lt;SPAN&gt; demonstrates how to pass one of the operational layers from the web map to a newly instantiated legend widget.&amp;nbsp; this affirms that it is possible to write code to support additional functionality on top of what is available in arcgis.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map = response.map;
...
//add the legend
var layers = response.itemInfo.itemData.operationalLayers;
...
if(layerInfo.length &amp;gt; 0){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendDijit = new esri.dijit.Legend({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map:map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfos:layerInfo
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },"legend");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:06:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-mirroring-arcgis-com/m-p/267056#M24685</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T13:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API mirroring ArcGIS.com</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-mirroring-arcgis-com/m-p/267057#M24686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Don&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 17:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-mirroring-arcgis-com/m-p/267057#M24686</guid>
      <dc:creator>DonaldCatanzaro</dc:creator>
      <dc:date>2012-12-13T17:42:03Z</dc:date>
    </item>
  </channel>
</rss>

