<?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: Leaflet - DynamicMapLayer/FeatureService Popup help in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858962#M456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Progress,  it appears to be the periods that are causing the problem.  We can make it work by modifying the library and creating an alias but this is not the idea solution. It looks like someone else using sde and creating a dynamic service and using it as a fetureService will also have this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a dynamic service I can get it working using this example:&lt;/P&gt;&lt;P&gt;http://esri.github.io/esri-leaflet/examples/customizing-popups.html&lt;/P&gt;&lt;P&gt;featureCollection.features[0].properties["Facility Name"];   //&amp;lt;&amp;lt;&amp;lt; DOHGIS.NYSDOH_CI_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY service fields:&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.ID ( type: esriFieldTypeString , alias: Facility ID , length: 35 )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.IDTYPE ( type: esriFieldTypeString , alias: Facility ID Type , length: 100 )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.NAME ( type: esriFieldTypeString , alias: Facility Name , length: 250 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working service fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Shape ( type: esriFieldTypeGeometry , alias: Shape )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME ( type: esriFieldTypeString , alias: NAME , length: 31 )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID ( type: esriFieldTypeDouble , alias: ID )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It must be related to the SDE Instance/Table/FieldName  structure.&lt;/P&gt;&lt;P&gt;DOHGIS.NYSDOH_CI_DATA.NAME   gives me a popup that says: ‘Name: { DOHGIS.NYSDOH_CI_DATA.NAME}’&lt;/P&gt;&lt;P&gt;NAME errors off, says No value provided for variable&lt;SPAN __jive_macro_name="NAME"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the field Alias:&lt;/P&gt;&lt;P&gt;Facility Name gives me a popup that says: ‘Name: { Facility Name }’&lt;/P&gt;&lt;P&gt;“Facility Name” gives me a popup that says: ‘Name: { “Facility Name” }’&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2016 16:22:17 GMT</pubDate>
    <dc:creator>BillChappell</dc:creator>
    <dc:date>2016-03-02T16:22:17Z</dc:date>
    <item>
      <title>Leaflet - DynamicMapLayer/FeatureService Popup help</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858959#M453</link>
      <description>&lt;P&gt;I had a DynamicMapLayer that I needed to style like a featurelayer. and I found this link which helped a little.&lt;/P&gt;
&lt;P&gt;&lt;A title="https://github.com/Esri/esri-leaflet/issues/321" href="https://github.com/Esri/esri-leaflet/issues/321" target="_blank"&gt;Style a DynamicMapLayer · Issue #321 · Esri/esri-leaflet · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now my points show up as custom icon and my definition query works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However the popup doesn't work quite right. I can get the hosp.bindPopup to open, but it doesn't see the fields in the service like a true featureService does. My html shows up, that's it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried the&amp;nbsp; &lt;A title="https://esri.github.io/esri-leaflet/examples/identifying-features.html" href="https://esri.github.io/esri-leaflet/examples/identifying-features.html" target="_blank"&gt;Identifying Features | Esri Leaflet&lt;/A&gt;&amp;nbsp; example but it doesn't work I get hosp.identify is not a function and it fails.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a dynamicMapLayer the following worked but not now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hosp.bindPopup(function (error, featureCollection) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(error || featureCollection.features.length === 0) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ' Name: ' + featureCollection.features[0].properties["Facility Name"] + "&amp;lt;br&amp;gt; Facility Type: "+featureCollection.features[0].properties["Facility Type"];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What I really need is to symbolize and definition query my DynamicMapService and have a popup that shows some attributes, Any ideas, examples? &lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858959#M453</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2023-08-28T13:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet - DynamicMapLayer/FeatureService Popup help</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858960#M454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pat's advice in #321 was to use L.esri.featureLayer().&amp;nbsp; you can find an example of implementing a popup with a featureLayer below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esri.github.io/esri-leaflet/examples/feature-layer-popups.html" title="http://esri.github.io/esri-leaflet/examples/feature-layer-popups.html"&gt;Custom popups | Esri Leaflet&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need additional assistance, it'd be really helpful if you could put together a &lt;A href="http://jsbin.com/?html,css,output"&gt;jsbin&lt;/A&gt; or something similar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858960#M454</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2016-03-01T21:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet - DynamicMapLayer/FeatureService Popup help</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858961#M455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,  Now I’m really confused, because my mapservice is behind a firewall, I found one that wasn’t and using the same code the new example worked while my service doesn’t. So just changing the url gives me a working example, the only thing I can see different is the field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Hosp Points&lt;/P&gt;&lt;P&gt;var hosp = L.esri.featureLayer(&lt;SPAN __jive_macro_name="url"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;}}).addTo(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hosp.bindPopup(function (evt) {&lt;/P&gt;&lt;P&gt;                                  return L.Util.template(' Name: {NAME}  &lt;BR /&gt; ID: &lt;SPAN __jive_macro_name="ID"&gt;&lt;/SPAN&gt;', evt.feature.properties);  //Both services have a NAME and ID field..&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY service fields:&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.ID ( type: esriFieldTypeString , alias: Facility ID , length: 35 )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.IDTYPE ( type: esriFieldTypeString , alias: Facility ID Type , length: 100 )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.NAME ( type: esriFieldTypeString , alias: Facility Name , length: 250 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working service fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Shape ( type: esriFieldTypeGeometry , alias: Shape )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME ( type: esriFieldTypeString , alias: NAME , length: 31 )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID ( type: esriFieldTypeDouble , alias: ID )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It must be related to the SDE Instance/Table/FieldName  structure.&lt;/P&gt;&lt;P&gt;DOHGIS.NYSDOH_CI_DATA.NAME   gives me a popup that says: ‘Name: { DOHGIS.NYSDOH_CI_DATA.NAME}’&lt;/P&gt;&lt;P&gt;NAME errors off, says No value provided for variable&lt;SPAN __jive_macro_name="NAME"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the field Alias:&lt;/P&gt;&lt;P&gt;Facility Name gives me a popup that says: ‘Name: { Facility Name }’&lt;/P&gt;&lt;P&gt;“Facility Name” gives me a popup that says: ‘Name: { “Facility Name” }’&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 15:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858961#M455</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2016-03-02T15:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet - DynamicMapLayer/FeatureService Popup help</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858962#M456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Progress,  it appears to be the periods that are causing the problem.  We can make it work by modifying the library and creating an alias but this is not the idea solution. It looks like someone else using sde and creating a dynamic service and using it as a fetureService will also have this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a dynamic service I can get it working using this example:&lt;/P&gt;&lt;P&gt;http://esri.github.io/esri-leaflet/examples/customizing-popups.html&lt;/P&gt;&lt;P&gt;featureCollection.features[0].properties["Facility Name"];   //&amp;lt;&amp;lt;&amp;lt; DOHGIS.NYSDOH_CI_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY service fields:&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.ID ( type: esriFieldTypeString , alias: Facility ID , length: 35 )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.IDTYPE ( type: esriFieldTypeString , alias: Facility ID Type , length: 100 )&lt;/P&gt;&lt;P&gt;•  DOHGIS.NYSDOH_CI_DATA.NAME ( type: esriFieldTypeString , alias: Facility Name , length: 250 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working service fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Shape ( type: esriFieldTypeGeometry , alias: Shape )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME ( type: esriFieldTypeString , alias: NAME , length: 31 )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID ( type: esriFieldTypeDouble , alias: ID )&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It must be related to the SDE Instance/Table/FieldName  structure.&lt;/P&gt;&lt;P&gt;DOHGIS.NYSDOH_CI_DATA.NAME   gives me a popup that says: ‘Name: { DOHGIS.NYSDOH_CI_DATA.NAME}’&lt;/P&gt;&lt;P&gt;NAME errors off, says No value provided for variable&lt;SPAN __jive_macro_name="NAME"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the field Alias:&lt;/P&gt;&lt;P&gt;Facility Name gives me a popup that says: ‘Name: { Facility Name }’&lt;/P&gt;&lt;P&gt;“Facility Name” gives me a popup that says: ‘Name: { “Facility Name” }’&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858962#M456</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2016-03-02T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet - DynamicMapLayer/FeatureService Popup help</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858963#M457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Downloaded  http://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changed this : templateRe: /\{ *(+) *\}/g,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To this: templateRe: /\{ *(+) *\}/g,    &amp;lt;&amp;lt; Notice the period after the w&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now return L.Util.template(' Name: {DOHGIS.NYSDOH_CI_DATA.NAME} ', evt.feature.properties);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns the popup with the name.  Getting around the periods from SDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need to run the custom lib locally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 17:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858963#M457</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2016-03-02T17:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Leaflet - DynamicMapLayer/FeatureService Popup help</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858964#M458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that the reason I am getting the instance/tablename/fieldname is the service has a joined table, if I remove the join just the fieldnames appear in the service and everything works as advertised in Johns post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 13:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/leaflet-dynamicmaplayer-featureservice-popup-help/m-p/858964#M458</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2016-03-04T13:58:22Z</dc:date>
    </item>
  </channel>
</rss>

