Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load custom .geoson file with ngx-openlayers #203

Open
mfarisakmar opened this issue Oct 11, 2018 · 0 comments
Open

Load custom .geoson file with ngx-openlayers #203

mfarisakmar opened this issue Oct 11, 2018 · 0 comments

Comments

@mfarisakmar
Copy link

mfarisakmar commented Oct 11, 2018

Hi,

May i know how could i load my custom .geojson file with this library?

below is my code in html. do i need to do anuything with the .ts file?

<div>
  <aol-map #map1 [width]="mapWidth" [height]="mapHeight">
      <aol-layer-tile>
          <aol-source-xyz></aol-source-xyz>
      </aol-layer-tile>
      <aol-layer-vector [visible]="'true'">
          <aol-source-geojson
              [url]="'geojson-service/map.geojson'"
              [featureProjection]="'EPSG:4326'">
          </aol-source-geojson>
          <aol-style>
              <aol-style-icon [src]="'assets/marker.svg'" [scale]="scale"
              [anchorOrigin]="'bottom-left'" [anchor]="[0.5, 0]"></aol-style-icon>
          </aol-style>
      </aol-layer-vector>
  </aol-map>
</div>

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant