<?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 Re: Url Query (urlToObject) in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841315#M9350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't realize I had to do this from the Content tab to see the additional options.&amp;nbsp; That code has actually resolved some other rendering options that I had questions about.&amp;nbsp; So, Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2014 15:57:41 GMT</pubDate>
    <dc:creator>JonathanPascoe</dc:creator>
    <dc:date>2014-08-22T15:57:41Z</dc:date>
    <item>
      <title>Url Query (urlToObject)</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841310#M9345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 12px;"&gt;I'm trying to add a urlToObject query on map load so as to pass x/y coordinates to an appbuilder map via url and zoom to location.&amp;nbsp; Any thoughts on where to insert code block?&amp;nbsp; This was pretty easy with default JS but my naivety on the builder is making this a bit more complicated than expected.&amp;nbsp; Widget model was first thought but I didn't see how to bypass adding button to ui while enabling code. Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841310#M9345</guid>
      <dc:creator>JonathanPascoe</dc:creator>
      <dc:date>2014-08-22T13:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Url Query (urlToObject)</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841311#M9346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So are you wanting to set the maps extent in the url, just provide a point to center the map at, or a point to center the map at and a scale to zoom to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 13:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841311#M9346</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-22T13:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Url Query (urlToObject)</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841312#M9347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So here is what you need to change if you want to specify a center (Lat,Lng) and a zoom scale:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ConfigManager.js at line 606 &amp;gt; function _addDefaultMap&amp;nbsp; (Assuming Beta 2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this to the end of the function:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14087167348175027 jive_text_macro" jivemacro_uid="_14087167348175027" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(this.urlParams.center){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.map.mapOptions.center = this.urlParams.center;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(this.urlParams.scale){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; config.map.mapOptions.scale = this.urlParams.scale;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MapManager.js at line 261 &amp;gt; function _processMapOptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this to end of function before return:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14087168435683527" jivemacro_uid="_14087168435683527" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ret.center){&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret.center = ret.center.split(",");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be it. This is what the addition to the url would look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14087169026998897 jive_text_macro" jivemacro_uid="_14087169026998897" modifiedtitle="true"&gt;
&lt;P&gt;index.html?center=-84.391136,33.74579,&amp;amp;scale=72224&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 14:15:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841312#M9347</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-22T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Url Query (urlToObject)</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841313#M9348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm!&amp;nbsp; Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 15:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841313#M9348</guid>
      <dc:creator>JonathanPascoe</dc:creator>
      <dc:date>2014-08-22T15:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Url Query (urlToObject)</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841314#M9349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Glad to help. You have marked my reply as helpful which is great. Marking a reply as helpful will help other user find reply that were helpful yet did not Answer the question. If the reply answered your question than you should click on the "Correct Answer" button (the one with the little green star) on the reply that answered your question, this will help other users find the correct answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 15:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841314#M9349</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-22T15:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Url Query (urlToObject)</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841315#M9350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't realize I had to do this from the Content tab to see the additional options.&amp;nbsp; That code has actually resolved some other rendering options that I had questions about.&amp;nbsp; So, Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 15:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/url-query-urltoobject/m-p/841315#M9350</guid>
      <dc:creator>JonathanPascoe</dc:creator>
      <dc:date>2014-08-22T15:57:41Z</dc:date>
    </item>
  </channel>
</rss>

