Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Marker and map center misalignment #153

@atotic

Description

@atotic

If this is embedded within an iron-page, map will not be centered on the marker.
Cause:
resize() method calls map.trigger('resize') which moves center of map slightly.
Fix: restore center after map's resize.

      <google-map id="map2" zoom="16"
        latitude="[[appointment.person.address.lat]]"
        longitude="[[appointment.person.address.long]]">
        <google-map-marker
          latitude="[[appointment.person.address.lat]]"
          longitude="[[appointment.person.address.long]]"
        ><p>Should have link to maps app here</p>
        </google-map-marker>
      </google-map>

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