<?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: Trying to figure to best way to add a online layer to a leaflet map in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868218#M364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like dynamicMapFeature is a newer version of WMS, in that it sends raster depictions of the data instead of the vector data. Am I reading that correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, &amp;nbsp;the docs page for L.esri.FeatureLayer says that simplifyFactor h&lt;SPAN style="color: #2c3136; background-color: #fafbfe; font-size: 14px;"&gt;as&lt;/SPAN&gt;&amp;nbsp;to be integer:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://esri.github.io/esri-leaflet/api-reference/layers/feature-layer.html" title="http://esri.github.io/esri-leaflet/api-reference/layers/feature-layer.html"&gt;L.esri.FeatureLayer | Esri Leaflet&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the example shows decimal values, so are those allowed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Dec 2016 04:01:44 GMT</pubDate>
    <dc:creator>EzraBoyd</dc:creator>
    <dc:date>2016-12-18T04:01:44Z</dc:date>
    <item>
      <title>Trying to figure out the best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868214#M360</link>
      <description>&lt;P&gt;I am trying to add layer 12 (warnings) in this services directory to a Leaflet map: &lt;A href="https://igems.doi.gov/arcgis/rest/services/igems_haz/MapServer" target="_blank"&gt;https://igems.doi.gov/arcgis/rest/services/igems_haz/MapServer &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, neither WMS or ESRI feature layer format seems to work well. WMS performs quickly, but I haven't been able to get popup info windows to work properly. With ESRI feature layer, it is the opposite: the info windows work great, but the large vector layer slows everything down. What other options do I have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Most of my experience is in the desktop GIS, so I am still not 100% on the different formats and specifications for webGIS.)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868214#M360</guid>
      <dc:creator>EzraBoyd</dc:creator>
      <dc:date>2023-08-28T13:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure to best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868215#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you elaborate on "haven't been able to get popup info windows to work properly."&amp;nbsp; What behavior are you seeing and what are you expecting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 14:10:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868215#M361</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-12-15T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure to best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868216#M362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of loading the layer as a WMS service, you might consider loading a dynamicMapLayer and calling `identify()` when the map is clicked to display in your popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;live sample:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://esri.github.io/esri-leaflet/examples/identifying-features.html" title="http://esri.github.io/esri-leaflet/examples/identifying-features.html"&gt;http://esri.github.io/esri-leaflet/examples/identifying-features.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another option would be to set the appropriate constructor properties to generalize the geometries of the featureLayer.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://esri.github.io/esri-leaflet/examples/simplifying-complex-features.html" title="http://esri.github.io/esri-leaflet/examples/simplifying-complex-features.html"&gt;http://esri.github.io/esri-leaflet/examples/simplifying-complex-features.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can find more information on the differences between different esri-leaflet layer types in the tutorial below.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://esri.github.io/esri-leaflet/tutorials/introduction-to-layer-types.html" title="http://esri.github.io/esri-leaflet/tutorials/introduction-to-layer-types.html"&gt;http://esri.github.io/esri-leaflet/tutorials/introduction-to-layer-types.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 00:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868216#M362</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2016-12-16T00:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure to best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868217#M363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L.tilelayer.WMS lets you add WMS layers, but it does not support popup windows out the box. At one point, the leaflet.wms.js plugin let me have that feature, but I had no control over the content and format. Then that just stopped working out of the blue (I think ESRI updated how they serve WMS.) From other research and forums, I know that I need to do a GetFeatureInfo request &amp;amp; pass that to an html object, but I don't know how to do that and haven't found any tutorials. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using L.esri.FeatureLayer, I have control over the pop-up info window, but the vector data takes much longer to download. It also freezes on mobile devices. I've tweaked the precision and renderer options, and that has gotten me some improvement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Dec 2016 03:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868217#M363</guid>
      <dc:creator>EzraBoyd</dc:creator>
      <dc:date>2016-12-18T03:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure to best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868218#M364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like dynamicMapFeature is a newer version of WMS, in that it sends raster depictions of the data instead of the vector data. Am I reading that correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, &amp;nbsp;the docs page for L.esri.FeatureLayer says that simplifyFactor h&lt;SPAN style="color: #2c3136; background-color: #fafbfe; font-size: 14px;"&gt;as&lt;/SPAN&gt;&amp;nbsp;to be integer:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://esri.github.io/esri-leaflet/api-reference/layers/feature-layer.html" title="http://esri.github.io/esri-leaflet/api-reference/layers/feature-layer.html"&gt;L.esri.FeatureLayer | Esri Leaflet&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the example shows decimal values, so are those allowed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Dec 2016 04:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868218#M364</guid>
      <dc:creator>EzraBoyd</dc:creator>
      <dc:date>2016-12-18T04:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure to best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868219#M365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dynamicMapLayer fetches a raster depiction of the data using the &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/export?bbox=-232.6997304416046,52.78025646434935,-12.1636664148742,184.17894659481317"&gt;export&lt;/A&gt; operation of a service published to ArcGIS Server. &amp;nbsp;WMS is a comparable, OGC compliant resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value passed as a simplifyFactor is as a multiplier to generate an appropriate maxAllowableOffset to pass to the service to remove extraneous vertices without affecting the shape of the result geometry too severely. You're correct that it can accept any number, not just an integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;relevant source:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/esri-leaflet/blob/9ad267e62410c7c1c7229a6cb77fcd80c660d3ad/src/Tasks/Query.js#L84-L88" title="https://github.com/Esri/esri-leaflet/blob/9ad267e62410c7c1c7229a6cb77fcd80c660d3ad/src/Tasks/Query.js#L84-L88"&gt;esri-leaflet/Query.js at 9ad267e62410c7c1c7229a6cb77fcd80c660d3ad · Esri/esri-leaflet · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've logged a documentation issue to make sure it gets fixed:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://github.com/Esri/esri-leaflet-doc/issues/123" title="https://github.com/Esri/esri-leaflet-doc/issues/123"&gt;https://github.com/Esri/esri-leaflet-doc/issues/123&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 20:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868219#M365</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2016-12-19T20:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out the best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868220#M366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again John. &amp;nbsp;I really appreciate your help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why this code is not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Add weather warnings&lt;BR /&gt;var weather = L.layerGroup();&lt;BR /&gt;&lt;SPAN&gt;var URL2 = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Figems.doi.gov%2Farcgis%2Frest%2Fservices%2Figems_haz%2FMapServer" rel="nofollow" target="_blank"&gt;http://igems.doi.gov/arcgis/rest/services/igems_haz/MapServer&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L.esri.dynamicMapLayer({&lt;BR /&gt;&amp;nbsp; &amp;nbsp;url: URL2,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;layers: 12,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;opacity : 0.25,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;useCors: false&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}).addTo(weather);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;weather.addTo(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The layer works when I use L.esri.featureLayer (albeit slow and memory intensive).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Dec 2016 23:57:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868220#M366</guid>
      <dc:creator>EzraBoyd</dc:creator>
      <dc:date>2016-12-25T23:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to figure out the best way to add a online layer to a leaflet map</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868221#M367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;layers expects an array `layers: [12]`, but other than that i don't see any problems with your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;live working sample&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="http://jsbin.com/vovunun/edit?html,output" title="http://jsbin.com/vovunun/edit?html,output"&gt;http://jsbin.com/vovunun/edit?html,output&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you snoop the network traffic, do you see an 'export' request and valid response from your map service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Dec 2016 19:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/trying-to-figure-out-the-best-way-to-add-a-online/m-p/868221#M367</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2016-12-26T19:38:54Z</dc:date>
    </item>
  </channel>
</rss>

