<?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 Open viewer centered at coordinates passed in URL parameters and display marker in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572973#M16415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would be sure that somebody has probably already addressed this one -- but I have searched and can't find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to open the Viewer centered at coordinators passed in the URL parameters AND display a marker at that location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out-of-the-box the viewer includes passing "center=" in the URL parameters to do such, but does not include displaying a marker at that location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, of course, I want to pass in Lat/Long coordinates in decimal degrees -- so I'll have to handle reprojecting. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody else tackled this one already? Any body have any sample code they could provide?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working in MapManager.mxml, but so far not having any luck adding the graphic marker.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2013 15:42:20 GMT</pubDate>
    <dc:creator>RichardButgereit</dc:creator>
    <dc:date>2013-12-12T15:42:20Z</dc:date>
    <item>
      <title>Open viewer centered at coordinates passed in URL parameters and display marker</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572973#M16415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would be sure that somebody has probably already addressed this one -- but I have searched and can't find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to open the Viewer centered at coordinators passed in the URL parameters AND display a marker at that location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Out-of-the-box the viewer includes passing "center=" in the URL parameters to do such, but does not include displaying a marker at that location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, of course, I want to pass in Lat/Long coordinates in decimal degrees -- so I'll have to handle reprojecting. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anybody else tackled this one already? Any body have any sample code they could provide?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working in MapManager.mxml, but so far not having any luck adding the graphic marker.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 15:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572973#M16415</guid>
      <dc:creator>RichardButgereit</dc:creator>
      <dc:date>2013-12-12T15:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Open viewer centered at coordinates passed in URL parameters and display marker</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572974#M16416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The viewer will handle coordinates in the URL that are not in the same spatial reference as the application, you just need to specify the wkid in the URL, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://www.example.com/flexviewer/index.html?center=103.87,1.31,4326&amp;amp;level=8&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This URL tells the application that the coordinates are in wkid 4326 for geographic / decimal degrees.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To put a point at the location would require you to some custom coding, there is nothing out of the box to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 20:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572974#M16416</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-12-12T20:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Open viewer centered at coordinates passed in URL parameters and display marker</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572975#M16417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the code written to accomplish this -- by modifying MapManager.mxml to add a graphic at the center.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a problem with the infoTemplate for that graphic -- but otherwise, this is working pretty well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially I followed the same steps Locate follows to place the graphic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 16:30:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572975#M16417</guid>
      <dc:creator>RichardButgereit</dc:creator>
      <dc:date>2013-12-16T16:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Open viewer centered at coordinates passed in URL parameters and display marker</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572976#M16418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By any chance could I get a look at the code you wrote to add the below graphic?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Niall&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I got the code written to accomplish this -- by modifying MapManager.mxml to add a graphic at the center.&lt;BR /&gt;&lt;BR /&gt;I am having a problem with the infoTemplate for that graphic -- but otherwise, this is working pretty well.&lt;BR /&gt;&lt;BR /&gt;Essentially I followed the same steps Locate follows to place the graphic.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 12:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572976#M16418</guid>
      <dc:creator>NiallBrosnan</dc:creator>
      <dc:date>2013-12-18T12:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Open viewer centered at coordinates passed in URL parameters and display marker</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572977#M16419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The viewer will handle coordinates in the URL that are not in the same spatial reference as the application, you just need to specify the wkid in the URL, eg:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://www.example.com/flexviewer/index.html?center=103.87,1.31,4326&amp;amp;level=8&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;This URL tells the application that the coordinates are in wkid 4326 for geographic / decimal degrees.&lt;BR /&gt;&lt;BR /&gt;To put a point at the location would require you to some custom coding, there is nothing out of the box to do this.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, Anthony...I had totally overlooked that the wkid could be passed in, and thought I had to code to handle that. Seeing that it was already addressed made the rest of the work easy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572977#M16419</guid>
      <dc:creator>RichardButgereit</dc:creator>
      <dc:date>2014-01-17T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Open viewer centered at coordinates passed in URL parameters and display marker</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572978#M16420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;By any chance could I get a look at the code you wrote to add the below graphic?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Niall&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Full code is attached...sorry, I didn't adds comments throughout indicating what I had added...you'll just to have compare/contrast with original code to determine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 15:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572978#M16420</guid>
      <dc:creator>RichardButgereit</dc:creator>
      <dc:date>2014-01-17T15:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Open viewer centered at coordinates passed in URL parameters and display marker</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572979#M16421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thats great. Thanks for that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will take a look at it today.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Niall&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 07:04:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/open-viewer-centered-at-coordinates-passed-in-url/m-p/572979#M16421</guid>
      <dc:creator>NiallBrosnan</dc:creator>
      <dc:date>2014-01-20T07:04:36Z</dc:date>
    </item>
  </channel>
</rss>

