Skip to content

Coordinates for Marker not added to Point field when map is closed and then opened without refreshing page #16

@alexandercyu

Description

@alexandercyu

Steps for reproducing error:

  1. Click "Location" button to open map modal
  2. (Optional) Just to make sure Marker coordinates are being added to the Point field, click the Marker button and add a Marker to the map
  3. Close the map modal
  4. Open the map modal again
  5. Click the Marker button and add a Marker to the map

Coordinates for the Marker are not added to the Point field

Issue is caused by attempt to stop error "Map container is already initialized." from occurring .

Workaround is for React, but works for plain Javascript as well:
PaulLeCam/react-leaflet#1133

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions