Skip to content

PngMarker

andy.rothwell edited this page Aug 31, 2018 · 6 revisions

PngMarker

Note: This page is for documenting phila-vue-mapping's components/PngMarker.vue, which is for adding a PngMarker to a leaflet map.

There is also PictometryPngMarker, for adding a PngMarker to a pictometry widget.

In a Vue template

The <png-marker> tag is put inside a <map_> tag:

<map_>
  ...
  <!-- marker using a png and ablility to rotate it -->
  <png-marker v-if="this.cyclomediaActive"
              :icon="'images/camera.png'"
              :latlng="cycloLatlng"
              :rotationAngle="cycloRotationAngle"
  />
  ...
</map_>
Clone this wiki locally