marker_with_label 0.0.8 copy "marker_with_label: ^0.0.8" to clipboard
marker_with_label: ^0.0.8 copied to clipboard

Dart 1 only

With that package you will be able to use Marker With Label API for Google Maps JavaScript API from Dart scripts.

example/marker_with_label_example.dart

import 'dart:html';

import 'package:google_maps/google_maps.dart';
import 'package:marker_with_label/marker_with_label.dart';

void main() {
  var latLng = new LatLng(-34.397, 150.644);

  final mapOptions = new MapOptions()
    ..zoom = 8
    ..center = latLng;

  var gMap = new GMap(document.getElementById("map-canvas"), mapOptions);

  var markerWithLabelOptions = new MarkerWithLabelOptions()
    ..labelContent = "Hello Label"
    ..map = gMap
    ..position = latLng;

  var markerWithLabel = new MarkerWithLabel(markerWithLabelOptions);

  markerWithLabel.onClick.listen((e){
    print('Marker Click');
  });
}
0
likes
40
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

With that package you will be able to use Marker With Label API for Google Maps JavaScript API from Dart scripts.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

google_maps, js_wrapping

More

Packages that depend on marker_with_label