You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-maps/how-to-use-spatial-io-module.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,10 @@ manager: philmea
15
15
16
16
The Azure Maps Web SDK provides the **Spatial IO module**, which integrates spatial data with the Azure Maps web SDK using JavaScript or TypeScript. The robust features in this module allow developers to:
17
17
18
-
-[Read and write data to common spatial files](spatial-io-read-write-spatial-data.md). Supported file formats include: KML, KMZ, GPX, GeoRSS, GML, and CSV files containing columns with spatial information. Also supports Well-Known Text (WKT).
19
-
-[Connect to Open Geospatial Consortium (OGC) services and integrate with Azure Maps web SDK. Overlay Web Map Services (WMS) and Web Map Tile Services (WMTS) as layers on the map.](spatial-io-add-ogc-map-layer.md).
18
+
-[Read and write common spatial data files](spatial-io-read-write-spatial-data.md). Supported file formats include: KML, KMZ, GPX, GeoRSS, GML, GeoJSON and CSV files containing columns with spatial information. Also supports Well-Known Text (WKT).
19
+
-[Connect to Open Geospatial Consortium (OGC) services and integrate with Azure Maps web SDK. Overlay Web Map Services (WMS) and Web Map Tile Services (WMTS) as layers on the map](spatial-io-add-ogc-map-layer.md).
20
20
-[Query data in a Web Feature Service (WFS)](spatial-io-connect-wfs-service.md).
21
-
-[Overlay complex data sets that contain style information and have them render automatically](spatial-io-add-simple-data-layer.md).
21
+
-[Overlay complex data sets that contain style information and have them render automatically using minimal code](spatial-io-add-simple-data-layer.md).
22
22
-[Leverage high-speed XML and delimited file reader and writer classes](spatial-io-core-operations.md).
23
23
24
24
In this guide, we'll learn how to integrate and use the Spatial IO module in a web application.
Copy file name to clipboardExpand all lines: articles/azure-maps/map-add-popup.md
+87-67Lines changed: 87 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This article shows you how to add a popup to a point on a map.
17
17
18
18
## Understand the code
19
19
20
-
The following code adds a point feature, that has `name` and `description` properties, to the map using a symbol layer. An instance of the [Popup class](https://docs.microsoft.com/javascript/api/azure-maps-control/atlas.popup?view=azure-iot-typescript-latest) is created but not displayed. Mouse events are added to the symbol layer to trigger opening and closing the popup. When the marker symbol is hovered, the popup's `position` property is updated with position of the marker, and the `content` option is updated with some HTML that wraps the `name` and `description` properties of the point feature being hovered. The popup is then displayed on the map using its `open` function.
20
+
The following code adds a point feature, that has `name` and `description` properties, to the map using a symbol layer. An instance of the [Popup class](https://docs.microsoft.com/javascript/api/azure-maps-control/atlas.popup) is created but not displayed. Mouse events are added to the symbol layer to trigger opening and closing the popup. When the marker symbol is hovered, the popup's `position` property is updated with position of the marker, and the `content` option is updated with some HTML that wraps the `name` and `description` properties of the point feature being hovered. The popup is then displayed on the map using its `open` function.
21
21
22
22
```javascript
23
23
//Define an HTML template for a custom popup content laypout.
@@ -120,20 +120,26 @@ The `numberFormat` option specifies the format of the number to display. If the
120
120
> There's only one way in which the String template can render images. First, the String template needs to have an image tag in it. The value being passed to the image tag should be a URL to an image. Then, the String template needs to have `isImage` set to true in the `HyperLinkFormatOptions`. The `isImage` option specifies that the hyperlink is for an image, and the hyperlink will be loaded into an image tag. When the hyperlink is clicked, the image will open.
content:'This template uses a string template with placeholders.<br/><br/> - Value 1 = {value1}<br/> - Value 2 = {value2/subValue}<br/> - Array value [2] = {arrayValue/2}',
125
+
numberFormat: {
126
+
maximumFractionDigits:2
127
+
}
128
+
};
129
+
130
+
var feature =newatlas.data.Feature(newatlas.data.Point([0, 0]), {
124
131
title:'Template 1 - String template',
125
132
value1:1.2345678,
126
133
value2: {
127
134
subValue:'Pizza'
128
135
},
129
-
arrayValue: [3, 4, 5, 6],
130
-
popupTemplate: {
131
-
content:'This template uses a string template with placeholders.<br/><br/> - Value 1 = {value1}<br/> - Value 2 = {value2/subValue}<br/> - Array value [2] = {arrayValue/2}',
@@ -143,84 +149,95 @@ The PropertyInfo template displays available properties of the feature. The `lab
143
149
Before the PropertyInfo template display the properties to the end user, it recursively checks that the properties are indeed defined for that feature. It also ignores displaying style and title properties. For example, it won't display `color`, `size`, `anchor`, `strokeOpacity`, and `visibility`. So, once property path checking is complete in the back-end, the PropertyInfo template shows the content in a table format.
A feature may also display content using a combination of the String template and the PropertyInfo template. In this case, the String template renders placeholders values on a white background. And, the PropertyInfo template renders a full width image inside a table. The properties in this sample are similar to the properties we explained in the previous samples.
'This template has two pieces of content; a string template with placeholders and a array of property info which renders a full width image.<br/><br/> - Value 1 = {value1}<br/> - Value 2 = {value2/subValue}<br/> - Array value [2] = {arrayValue/2}',
213
+
[{
214
+
propertyPath:'imageLink',
215
+
label:'Image',
216
+
hideImageLabel:true,
217
+
hyperlinkFormat: {
218
+
isImage:true
219
+
}
220
+
}]
221
+
],
222
+
numberFormat: {
223
+
maximumFractionDigits:2
224
+
}
225
+
};
226
+
227
+
var feature =newatlas.data.Feature(newatlas.data.Point([0, 0]), {
'This template has two pieces of content; a string template with placeholders and a array of property info which renders a full width image.<br/><br/> - Value 1 = {value1}<br/> - Value 2 = {value2/subValue}<br/> - Array value [2] = {arrayValue/2}',
0 commit comments