<?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: Problems with center and marker URL parameters in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166620#M8146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, but we're not using the Dev version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 14:20:19 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2016-02-17T14:20:19Z</dc:date>
    <item>
      <title>Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166618#M8144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The center and marker URL parameters doesn't work for me with the embedded map viewer.&lt;/P&gt;&lt;P&gt;The map doesn't center where it's supposed to, it seems to be centering in the middle of my web map regardless of the coordinates I'm using.&lt;BR /&gt;I tried to create a web app with web app builder and with that app the URL-parameters works so that's my work around for now, but why doesn't it work with the embedded viewer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&lt;A href="http://oskarshamn.maps.arcgis.com/apps/webappviewer/index.html?id=7612462e981a457794bd936d4e9549ad&amp;amp;marker=147290,6349306,3010&amp;amp;level=7" title="http://oskarshamn.maps.arcgis.com/apps/webappviewer/index.html?id=7612462e981a457794bd936d4e9549ad&amp;amp;marker=147290,6349306,3010&amp;amp;level=7"&gt;http://oskarshamn.maps.arcgis.com/apps/webappviewer/index.html?id=7612462e981a457794bd936d4e9549ad&amp;amp;marker=147290,6349306,3010&amp;amp;level=7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't:&lt;/P&gt;&lt;P&gt;&lt;A href="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=147290,6349306,3010&amp;amp;level=7" title="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=147290,6349306,3010&amp;amp;level=7"&gt;http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=147290,6349306,30…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with marker you don't have to use center, but I've tried adding &amp;amp;center=147290,6349306,3010 as well but it's the same. I've also tried using non projected coordinates but it's also the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Forgot to mention that the marker is placed correctly in both cases, but the centering doesn't work with the embedded viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could just settle with my web app, but it's a little bit slower and with the embedded viewer there's no popup for the marker if I just pass the coordinates, and that's what I want in this case. The web App shows an empty PopUp, anyone knows how to disable the popup for an URL parameter marker using &lt;A href="https://community.esri.com/space/2150"&gt;Web AppBuilder for ArcGIS&lt;/A&gt;​??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 11:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166618#M8144</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2016-02-17T11:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166619#M8145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure you can disable the popup for the center url marker when using WAB Dev.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the MapUrlParamsHandler.js and find the addMarker function (line 7 change infoTemplate to null as below):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function addMarker(point, markerSymbol, textSymbol, title, map){
&amp;nbsp;&amp;nbsp;&amp;nbsp; var markerG, textG;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var infoTemplate = new InfoTemplate('', title);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = new GraphicsLayer();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(layer);

&amp;nbsp;&amp;nbsp;&amp;nbsp; markerG = new Graphic(point, markerSymbol, null, null);
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.add(markerG);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (textSymbol) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textSymbol.xoffset = markerSymbol.width / 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textSymbol.yoffset = markerSymbol.height / 2 + markerSymbol.yoffset;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textG = new Graphic(new Point(point.toJson()), textSymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.add(textG);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAt(point);
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166619#M8145</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T08:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166620#M8146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, but we're not using the Dev version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166620#M8146</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2016-02-17T14:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166621#M8147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mattias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then you have no option to remove the popup for the marker then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166621#M8147</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-02-17T14:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166622#M8148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I can read &lt;A href="http://doc.arcgis.com/en/arcgis-online/reference/use-url-parameters.htm#ESRI_SECTION1_907DD20534E143DEBF352CDA0F1AB938" title="http://doc.arcgis.com/en/arcgis-online/reference/use-url-parameters.htm#ESRI_SECTION1_907DD20534E143DEBF352CDA0F1AB938"&gt;Use URL parameters to modify maps—ArcGIS Online Help | ArcGIS&lt;/A&gt;&amp;nbsp;&amp;nbsp; it looks like you are doing it correctly, but it is almost as if you have an extent that is overriding it.&amp;nbsp; I was able o at least see you marker if I set the level=2 instead of 7.......removing the &amp;amp;level=# completely at least allowed it to center.&amp;nbsp; So I would see if that would work for you to start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 16:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166622#M8148</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-02-17T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166623#M8149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the current release the embed app doesn't support specifying coordinates in values other than lat/lon. At the next release due out later this month this is supported and your example url will work as it does in the Web App Builder. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 17:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166623#M8149</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2016-02-17T17:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166624#M8150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried with lat/long values as well but it doesn't work for the embed app either, or am I missing something in these URLs?&lt;/P&gt;&lt;P&gt;Web app, centers correctly:&lt;/P&gt;&lt;P&gt;&lt;A href="http://oskarshamn.maps.arcgis.com/apps/webappviewer/index.html?id=7612462e981a457794bd936d4e9549ad&amp;amp;marker=16.4551,57.2639&amp;amp;level=7" title="http://oskarshamn.maps.arcgis.com/apps/webappviewer/index.html?id=7612462e981a457794bd936d4e9549ad&amp;amp;marker=16.4551,57.2639&amp;amp;level=7"&gt;http://oskarshamn.maps.arcgis.com/apps/webappviewer/index.html?id=7612462e981a457794bd936d4e9549ad&amp;amp;marker=16.4551,57.2639&amp;amp;level=7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;embed app, doesn't center correctly:&lt;/P&gt;&lt;P&gt;&lt;A href="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7" title="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7"&gt;http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;l…&lt;/A&gt; &lt;A href="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7&amp;amp;center=16.4551,57.2639" title="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7&amp;amp;center=16.4551,57.2639"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't know there was a different between modifying a webmap and the embed app, but I saw that in the documentation now. But still the above should work right? This URL for the webmap viewer works as well&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/webmap/viewer.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7" title="http://www.arcgis.com/home/webmap/viewer.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 07:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166624#M8150</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2016-02-18T07:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166625#M8151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will work at the next release for the embed app but does not work with the current release. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166625#M8151</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2016-02-18T16:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with center and marker URL parameters</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166626#M8152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/5173"&gt;Mattias Ekström&lt;/A&gt;​ the release last night should have resolved the url param issues you were experiencing.&amp;nbsp; I tested your links above and it looks good to me. Please let me know if you see any issues. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7" title="http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;level=7"&gt;http://oskarshamn.maps.arcgis.com/apps/Embed/index.html?webmap=0fe9b350b5444a07bca12b1666ae8c42&amp;amp;marker=16.4551,57.2639&amp;amp;l…&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/problems-with-center-and-marker-url-parameters/m-p/166626#M8152</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2016-03-02T16:32:58Z</dc:date>
    </item>
  </channel>
</rss>

