Answers.Body: <p>Not sure why; however, when I uninstalled and reinstalled the plugins everything works now. Ghost in the Machine I suppose.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-17T18:53:29.193Z
Answers.LastActivityDate: 2022-01-17T18:53:29.193Z
Answers.UserDisplayName: Paul Williams
Body: <p>I have CiviCRM v5.44.0 running on WordPress 5.8.3 and am using Leaflet Map and Leaflet Map CiviCRM Integration with the Data Processor extension and Geocoder extension. Thus far, I am unable to get the map to display any of my members. I specifically set one member with the Membership Type and Logo. Everything I am doing is based upon:</p>
  <p><a href="https://civicrm.org/fr/node/11212" rel="nofollow noreferrer">https://civicrm.org/fr/node/11212</a></p>
  <p>My map code is as follows:</p>
  <pre><code>[leaflet-map lat=32.186806687571355 lng=-100.63476562500001 zoom=3 zoomcontrol !detect-retina]
  [leaflet-civicrm-api entity=Contacts action=get lng_property='longitude' lat_property='latitude' profile=local popup_text='&lt;img src=&quot;{logo}&quot;&gt;&lt;br/&gt;&lt;strong&gt;Name: &lt;/strong&gt;{organization_name}&lt;br&gt;&lt;strong&gt;Services: &lt;/strong&gt;{services}'][/leaflet-civicrm-api]
  </code></pre>
  <p>To that point, Services has 3 options just like the example. Logo is an upload field for a logo. Organization Name is the name of the company that the person works for.</p>
  <p>API entity is set to Services and the fields have all been added according to post instructions.</p>
  <p>Only a blank map appears.</p>
  <p>The CiviCRM is a plugin running on WordPress inside of the main domain and set to local. The page is located here:</p>
  <p>xxxxxx</p>
  <p>Also, end up with these errors after clearing the cache and triggered by WP Plugin Integration between Leaflet Map and CiviCRM (version 1.0.7):</p>
  <p>An error of type E_COMPILE_ERROR was caused in line 21 of the file /home/xxxxx/public_html/wp-content/plugins/integration-between-leaflet-map-and-civicrm/shortcodes/class.civicrm-api-shortcode.php. Error message: require_once(): Failed opening required 'LEAFLET_MAP__PLUGIN_DIRshortcodes/class.shortcode.php' (include_path='.:/opt/alt/php74/usr/share/pear')</p>
  <p>Any help would be appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-15T21:56:27.710Z
Comments.Text: Maybe a silly question but is leaflet-map activated in the wordpress plugins? That error sounds like the `LEAFLET_MAP__PLUGIN_DIR` is not getting [defined](https://github.com/bozdoz/wp-plugin-leaflet-map/blob/937e79888a9449b6d440f42f509561c29da252a2/leaflet-map.php#L34), which happens when leaflet-map loads.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-15T22:05:55.180Z
Comments.Text: Yeah, both were activated as per instructions. I was seeing a blank map properly defined because I had to work with the shortcode settings in there to get the :flavor" of map I wanted. When I cleared the cache, it triggered the error and I have since deactivated the plugins.
Comments.UserDisplayName: Paul Williams
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-15T22:14:54.017Z
Comments.Text: Ok. I don't know how load order works in wordpress but maybe the integration plugin is loading before leaflet-map, so the `define` hasn't happened yet. Is there a way to make sure leaflet-map has a higher priority?
Comments.UserDisplayName: Demerit
Tags: <wordpress><map>
Title: CiviCRM Map Of Members WordPress
ThreadText: # CiviCRM Map Of Members WordPress
  
  (Asked by: username_0 on 2022-01-14)
  
  I have CiviCRM v5.44.0 running on WordPress 5.8.3 and am using Leaflet Map and Leaflet Map CiviCRM Integration with the Data Processor extension and Geocoder extension. Thus far, I am unable to get the map to display any of my members. I specifically set one member with the Membership Type and Logo. Everything I am doing is based upon:
  
  <https://civicrm.org/fr/node/11212>
  
  My map code is as follows:
  
  ```
  [leaflet-map lat=32.186806687571355 lng=-100.63476562500001 zoom=3 zoomcontrol !detect-retina]
  [leaflet-civicrm-api entity=Contacts action=get lng_property='longitude' lat_property='latitude' profile=local popup_text='<img src="{logo}"><br/><strong>Name: </strong>{organization_name}<br><strong>Services: </strong>{services}'][/leaflet-civicrm-api]
  
  ```
  
  To that point, Services has 3 options just like the example. Logo is an upload field for a logo. Organization Name is the name of the company that the person works for.
  
  API entity is set to Services and the fields have all been added according to post instructions.
  
  Only a blank map appears.
  
  The CiviCRM is a plugin running on WordPress inside of the main domain and set to local. The page is located here:
  
  xxxxxx
  
  Also, end up with these errors after clearing the cache and triggered by WP Plugin Integration between Leaflet Map and CiviCRM (version 1.0.7):
  
  An error of type E\_COMPILE\_ERROR was caused in line 21 of the file /home/xxxxx/public\_html/wp-content/plugins/integration-between-leaflet-map-and-civicrm/shortcodes/class.civicrm-api-shortcode.php. Error message: require\_once(): Failed opening required 'LEAFLET\_MAP\_\_PLUGIN\_DIRshortcodes/class.shortcode.php' (include\_path='.:/opt/alt/php74/usr/share/pear')
  
  Any help would be appreciated.
  
  **Tags:** wordpress, map
  
  > **Comments:**
  > **username_1**: Maybe a silly question but is leaflet-map activated in the wordpress plugins? That error sounds like the `LEAFLET_MAP__PLUGIN_DIR` is not getting [defined](https://github.com/bozdoz/wp-plugin-leaflet-map/blob/937e79888a9449b6d440f42f509561c29da252a2/leaflet-map.php#L34), which happens when leaflet-map loads.  
  > **username_0**: Yeah, both were activated as per instructions. I was seeing a blank map properly defined because I had to work with the shortcode settings in there to get the :flavor" of map I wanted. When I cleared the cache, it triggered the error and I have since deactivated the plugins.  
  > **username_1**: Ok. I don't know how load order works in wordpress but maybe the integration plugin is loading before leaflet-map, so the `define` hasn't happened yet. Is there a way to make sure leaflet-map has a higher priority?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-01-17. Score: 3 | Accepted answer
  
  Not sure why; however, when I uninstalled and reinstalled the plugins everything works now. Ghost in the Machine I suppose.
  
  
  ---
  
  