diff --git a/demo/js/features/apidoc/components/subs/apiContent/subs/docCircle.co b/demo/js/features/apidoc/components/subs/apiContent/subs/docCircle.co
index 9ac2765..dfa6e03 100644
--- a/demo/js/features/apidoc/components/subs/apiContent/subs/docCircle.co
+++ b/demo/js/features/apidoc/components/subs/apiContent/subs/docCircle.co
@@ -6,7 +6,7 @@ export default {
Usage
<baidu-map map-options="{expression}">
- <circle center="{expression}" radius="{expression}" options="{expression}" loaded="{expression}"><circle>
+ <circle center="{expression}" radius="{expression}" options="{expression}" loaded="{expression}"></circle>
</baidu-map>
Attributes
diff --git a/demo/js/features/apidoc/components/subs/apiContent/subs/docControl.co b/demo/js/features/apidoc/components/subs/apiContent/subs/docControl.co
index 46eff9a..65e58b6 100644
--- a/demo/js/features/apidoc/components/subs/apiContent/subs/docControl.co
+++ b/demo/js/features/apidoc/components/subs/apiContent/subs/docControl.co
@@ -1,17 +1,17 @@
const NEW_SHANGHAI_INTERNATIONAL_TOWER = {
- longitude: 121.51606,
- latitude: 31.244604
-};
+ longitude: 121.51606,
+ latitude: 31.244604
+}
export default {
- template: `
+ template: `
The control
component is sub-component of baidu-map
. It is used to add BMap.Control
to the map.
Usage
<baidu-map map-options="{expression}">
- <control type="{string}" options="{expression}"><control>
+ <control type="{string}" options="{expression}"></control>
</baidu-map>
Attributes
@@ -85,32 +85,34 @@ export default {
]);
`,
- controller: class {
- /* @ngInject */
- constructor() {
- this.opts = {
- centerAndZoom: {
- ...NEW_SHANGHAI_INTERNATIONAL_TOWER,
- zoom: 16
- }
- };
- this.navOpts = {
- anchor: window.BMAP_ANCHOR_TOP_LEFT
- };
- this.overOpts = {
- anchor: window.BMAP_ANCHOR_BOTTOM_RIGHT
- };
+ controller: class {
+ /* @ngInject */
+ constructor() {
+ this.opts = {
+ centerAndZoom: {
+ ...NEW_SHANGHAI_INTERNATIONAL_TOWER,
+ zoom: 16
}
+ }
+ this.navOpts = {
+ anchor: window.BMAP_ANCHOR_TOP_LEFT
+ }
+ this.overOpts = {
+ anchor: window.BMAP_ANCHOR_BOTTOM_RIGHT
+ }
+ }
- mapLoaded(map) {
- this.copyOpts = {
- anchor: 1,
- copyrights: [{
- id: 0,
- content: 'This is the customized Copyright!',
- bounds: map.getBounds()
- }]
- };
- }
+ mapLoaded(map) {
+ this.copyOpts = {
+ anchor: 1,
+ copyrights: [
+ {
+ id: 0,
+ content: 'This is the customized Copyright!',
+ bounds: map.getBounds()
+ }
+ ]
+ }
}
-};
+ }
+}
diff --git a/demo/js/features/apidoc/components/subs/apiContent/subs/docHeatmap.co b/demo/js/features/apidoc/components/subs/apiContent/subs/docHeatmap.co
index 352d768..97cd304 100644
--- a/demo/js/features/apidoc/components/subs/apiContent/subs/docHeatmap.co
+++ b/demo/js/features/apidoc/components/subs/apiContent/subs/docHeatmap.co
@@ -6,7 +6,7 @@ export default {
Usage
<baidu-map map-options="{expression}">
- <heatmap options="{expression}" dataset="{expression}" loaded="{expression}"><heatmap>
+ <heatmap options="{expression}" dataset="{expression}" loaded="{expression}"></heatmap>
</baidu-map>
Attributes
diff --git a/demo/js/features/apidoc/components/subs/apiContent/subs/docMarker.co b/demo/js/features/apidoc/components/subs/apiContent/subs/docMarker.co
index ed91e0c..f008ece 100644
--- a/demo/js/features/apidoc/components/subs/apiContent/subs/docMarker.co
+++ b/demo/js/features/apidoc/components/subs/apiContent/subs/docMarker.co
@@ -1,19 +1,19 @@
-import markericonUrl from 'img/markericon.png';
+import markericonUrl from 'img/markericon.png'
const NEW_SHANGHAI_INTERNATIONAL_TOWER = {
- longitude: 121.51606,
- latitude: 31.244604
-};
+ longitude: 121.51606,
+ latitude: 31.244604
+}
export default {
- template: `
+ template: `
The marker
component is sub-component of baidu-map
. It is used to add BMap.Marker
to the map.
Usage
<baidu-map map-options="{expression}">
- <marker point="{expression}" options="{expression}" click="{expression}"><marker>
+ <marker point="{expression}" options="{expression}" click="{expression}"></marker>
</baidu-map>
Attributes
@@ -100,39 +100,42 @@ export default {
]);
`,
- controller: class {
- /* @ngInject */
- constructor() {
- this.opts = {
- centerAndZoom: {
- ...NEW_SHANGHAI_INTERNATIONAL_TOWER,
- zoom: 16
- }
- };
- this.markerOpts = {
- offset: {
- width: 0,
- height: -30
- },
- icon: {
- url: markericonUrl,
- size: {
- width: 49,
- height: 60
- }
- }
- };
- this.point = NEW_SHANGHAI_INTERNATIONAL_TOWER;
+ controller: class {
+ /* @ngInject */
+ constructor() {
+ this.opts = {
+ centerAndZoom: {
+ ...NEW_SHANGHAI_INTERNATIONAL_TOWER,
+ zoom: 16
}
-
- showWindow(e, marker, map) {
- map.openInfoWindow(new BMap.InfoWindow('地址:浦东南路360号', {
- title: '新上海国际大厦',
- offset: {
- width: 0,
- height: -30
- }
- }), marker.getPosition());
+ }
+ this.markerOpts = {
+ offset: {
+ width: 0,
+ height: -30
+ },
+ icon: {
+ url: markericonUrl,
+ size: {
+ width: 49,
+ height: 60
+ }
}
+ }
+ this.point = NEW_SHANGHAI_INTERNATIONAL_TOWER
+ }
+
+ showWindow(e, marker, map) {
+ map.openInfoWindow(
+ new BMap.InfoWindow('地址:浦东南路360号', {
+ title: '新上海国际大厦',
+ offset: {
+ width: 0,
+ height: -30
+ }
+ }),
+ marker.getPosition()
+ )
}
-};
+ }
+}
diff --git a/demo/js/features/apidoc/components/subs/apiContent/subs/docOverlay.co b/demo/js/features/apidoc/components/subs/apiContent/subs/docOverlay.co
index edd8f14..5fd63ab 100644
--- a/demo/js/features/apidoc/components/subs/apiContent/subs/docOverlay.co
+++ b/demo/js/features/apidoc/components/subs/apiContent/subs/docOverlay.co
@@ -11,7 +11,7 @@ export default {
Usage
<baidu-map map-options="{expression}">
- <overlay type="{string}" options="{expression}" dataset="{expression}"><overlay>
+ <overlay type="{string}" options="{expression}" dataset="{expression}"></overlay>
</baidu-map>
Attributes
diff --git a/demo/js/features/apidoc/components/subs/apiContent/subs/docPolygon.co b/demo/js/features/apidoc/components/subs/apiContent/subs/docPolygon.co
index 976e55c..f4d4ccc 100644
--- a/demo/js/features/apidoc/components/subs/apiContent/subs/docPolygon.co
+++ b/demo/js/features/apidoc/components/subs/apiContent/subs/docPolygon.co
@@ -6,7 +6,7 @@ export default {
Usage
<baidu-map map-options="{expression}">
- <polygon points="{expression}" options="{expression}" loaded="{expression}"><polygon>
+ <polygon points="{expression}" options="{expression}" loaded="{expression}"></polygon>
</baidu-map>
Attributes
diff --git a/demo/js/features/apidoc/components/subs/apiContent/subs/docPolyline.co b/demo/js/features/apidoc/components/subs/apiContent/subs/docPolyline.co
index f0ea700..726a67e 100644
--- a/demo/js/features/apidoc/components/subs/apiContent/subs/docPolyline.co
+++ b/demo/js/features/apidoc/components/subs/apiContent/subs/docPolyline.co
@@ -6,7 +6,7 @@ export default {
Usage
<baidu-map map-options="{expression}">
- <polyline points="{expression}" options="{expression}" loaded="{expression}"><polyline>
+ <polyline points="{expression}" options="{expression}" loaded="{expression}"></polyline>
</baidu-map>
Attributes