24.8.6-beta.0 • Published 11 months ago
@qrsln/mapper v24.8.6-beta.0
Mapper
For Angular
Dependencies
npm install @angular/google-maps
app.module.ts
import {MapperModule} from '@qrsln/mapper';
@NgModule({
imports: [MapperModule, /*...*/],
})
Usage
<!--index.html-->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key="></script>
<!--<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>-->
<!--In Components -->
<div qlMapper [Options]="mapOptionBasic"></div>
<div qlMapper [Options]="mapOptionRouteMap"></div>
mapOptionRouteMap: MapperOption = {
type: MapperType.RouteMap,
mapType: MapType.ROADMAP,
zoomControl: false,
// center: {Lat: 41.015137, Lng: 28.97953},
// zoom: {val: 10, min: 4, max: 20},
markers: [
{Title: 'İstanbul', LatLng: {Lat: 41.015137, Lng: 28.979530}},
{Title: 'Moscow', LatLng: {Lat: 55.751244, Lng: 37.618423}},
{Title: 'Paris', LatLng: {Lat: 48.864716, Lng: 2.349014}},
]
} as MapperOption;
mapOptionBasic: MapperOption = {
type: MapperType.Basic,
mapType: MapType.HYBRID,
zoomControl: false,
mapTypeControl: false,
center: {Lat: 41.015137, Lng: 28.97953},
infoContent: `
<div id="content">
<div id="siteNotice"></div>
<h1 id="firstHeading" class="firstHeading">Uluru</h1>
<div id="bodyContent">
<p>
<b>Uluru</b>, also referred to as <b>Ayers Rock</b>, is a large sandstone rock formation in the southern part of
the Northern Territory, central Australia. It lies 335km (208mi) south west of the nearest large town,
Alice Springs; 450km (280mi) by road. Kata Tjuta and Uluru are the two major features of the Uluru -
Kata Tjuta National Park. Uluru is sacred to the Pitjantjatjara and Yankunytjatjara, the Aboriginal people of the
area. It has many springs, waterholes, rock caves and ancient paintings. Uluru is listed as a World Heritage Site.
</p>
<p>
Attribution: Uluru, <a href="https://en.wikipedia.org/w/index.php?title=Uluru">
https://en.wikipedia.org/w/index.php?title=Uluru</a> (last visited June 22, 2009).
</p>
</div>
</div>
`,
zoom: {val: 15, max: 18},
markers: []
} as MapperOption;
Screenshots
24.8.6-beta.0
11 months ago
24.2.12-beta.0
1 year ago
23.1.8-beta.0
2 years ago
22.5.6-beta.0
3 years ago
22.1.30
3 years ago
21.8.13
4 years ago
21.8.3
4 years ago
21.2.21
4 years ago
21.1.23
4 years ago
21.1.13
4 years ago