On the leaflet form widget, when entering a custom icon path (the path is tested to be valid), my marker disappears from the map entirely and the map is being showing fully zoomed out. My location data is stored in a geofield that is getting its data from an address field via geocoder.

When I remove the custom icon path, everything is workin again with the custom marker icon.

In views everything is working fine. The problem seems to be with the form widget.

Comments

extect created an issue. See original summary.

itamair’s picture

Status: Active » Needs work

Coming soon on this ...

  • itamair committed 6c7050d on 8.x-1.x
    Issue #2977083 by itamair: Cannot use custom marker icon
    Use of the...
itamair’s picture

Status: Needs work » Fixed

Last dev and 1.0-beta6 versions should have fixed this. Reopen otherwise ...

saltednut’s picture

This actually broke our test suite when I saw it come through (we had been tied to dev). Here's the error report:

[variables] => Array
  │          (
  │              [%type] => Notice
  │              [@message] => Drupal\Core\Render\Markup Object
  │                  (
  │                      [string:protected] => Undefined index: iconUrl
  │                  )
  │  
  │              [%function] => Drupal\leaflet\Plugin\Field\FieldFormatter\LeafletDefaultFormatter->viewElements()
  │              [%file] => /home/travis/build/acquia/df/docroot/profiles/df/modules/contrib/leaflet/src/Plugin/Field/FieldFormatter/LeafletDefaultFormatter.php

Here: https://travis-ci.org/acquia/df/jobs/394320182#L1830

Hope this is of some help. I've got us tied to an earlier commit for now. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.