Skip to content

Commit

Permalink
Merge branch 'rc/v1.0.2' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed May 17, 2021
2 parents 25df59a + 597fb31 commit ddc018f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .ember-cli.dst

This file was deleted.

17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CHANGELOG

## v1.0.2

### Fixed

- Pinpoint markers on Layers route

## v1.0.1

### Added

- Meta tags for routes

## v1.0.0

Initial release
15 changes: 14 additions & 1 deletion app/controllers/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,17 @@ export default class LayersController extends Controller {
this.activeFeature = feature;
});
}
}

@action
addMarker(vectorFeature, vector, layer, feature/*, point*/) {
if (vectorFeature.geometryType.includes('Point')) {
vectorFeature.setProperties(
{
geometry: feature
}
);
vectorFeature.leafletMarker.setIcon(vectorFeature.divIcon);
// This function has to return the marker object.
return vectorFeature.leafletMarker;
}
}}
1 change: 1 addition & 0 deletions app/templates/layers.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
@color={{if (or (eq feature.geometryType 'LineString') (eq feature.geometryType 'MultiLineString')) (vector-color this.layer feature) "darkgray" }}
@fillColor={{vector-color this.layer feature}}
@style={{feature.style}}
@pointToLayer={{fn this.addMarker feature this.layer}}
/>
{{/each}}
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atlmaps-client",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"description": "Front end app for ATLMaps.org",
"repository": "",
Expand Down

0 comments on commit ddc018f

Please sign in to comment.