<?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: Adding a clickable layer in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860792#M480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the click event for your cityLayer isn't triggered because you're adding it to the map before (and therefore underneath) the countries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 15:34:40 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2015-10-14T15:34:40Z</dc:date>
    <item>
      <title>Adding a clickable layer</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860789#M477</link>
      <description>&lt;P&gt;I am trying to do the following:&lt;/P&gt;
&lt;P&gt;When you click on a button, a country or a set of highlighted countries are displayed.&lt;/P&gt;
&lt;P&gt;next, click on a country and you zoom in to a highlighted city or cities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to display the city/cities as a clickable layer when you zoom in&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, I can click and zoom in on a highlighted country and the city looks like a dot..&amp;nbsp; (&lt;A style="line-height: 1.5;" title="http://cloudtobago.com/icgc/mepmap2.html" href="http://cloudtobago.com/icgc/mepmap2.html" target="_blank"&gt;ICGC WEB PORTAL&lt;/A&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions are welcome!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860789#M477</guid>
      <dc:creator>joepublic</dc:creator>
      <dc:date>2023-08-28T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a clickable layer</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860790#M478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I want to display the city/cities as a clickable layer&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;what is a 'clickable layer'?&amp;nbsp; &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;the city looks like a dot&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;what do you expect the cities to look like?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you'll have to be a lot more specific about what exactly what you're trying to accomplish and what you've already tried in order for someone to be able to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 00:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860790#M478</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2015-10-14T00:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a clickable layer</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860791#M479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By clickable I mean when you click on the city, data about the city will be&lt;/P&gt;&lt;P&gt;displayed in the side panel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is what I am trying to make happen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1, Click on the country and zoom into and center on the city.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2. Click on the city and data about the city is displayed in the side&lt;/P&gt;&lt;P&gt;panel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I defined a city url:&lt;/P&gt;&lt;P&gt;var cityURL = 'http://....../StRaphaelOSM/MapServer/;&lt;/P&gt;&lt;P&gt;and added the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var cityLayer = L.esri.featureLayer(&lt;SPAN __default_attr="cityURL" __jive_macro_name="url"&gt;&lt;/SPAN&gt;).addTo(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cityLayer.on('click', function(evt) {&lt;/P&gt;&lt;P&gt;var bounds = evt.layer.getBounds()&lt;/P&gt;&lt;P&gt;  map.fitBounds(bounds);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 04:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860791#M479</guid>
      <dc:creator>joepublic</dc:creator>
      <dc:date>2015-10-14T04:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a clickable layer</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860792#M480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the click event for your cityLayer isn't triggered because you're adding it to the map before (and therefore underneath) the countries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 15:34:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860792#M480</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2015-10-14T15:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a clickable layer</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860793#M481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Thanks for pointing that out!! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Problem solved!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/adding-a-clickable-layer/m-p/860793#M481</guid>
      <dc:creator>joepublic</dc:creator>
      <dc:date>2015-10-15T15:57:19Z</dc:date>
    </item>
  </channel>
</rss>

