10 out of 14 rated this helpful - Rate this topic

Pushpin Syntax and Icon Styles

Bing Services

Pushpins identify locations on a map. You can specify an icon style and a label for a pushpin, in addition to its location.

Ff701719.note(en-us,MSDN.10).gifNote:
You can specify up to 18 pushpins within a Get a Static Map URL that uses HTTP GET protocol. However, if you use the HTTP POST method option, you can specify up to 100 pushpins by inserting them into the request body. See the HTTP POST Syntax section below for information about how to format the pushpins in a request body. The Get a Static Map topic provides more details and an example.

The following table shows the syntax to use to specify a pushpin location.

pushpin=latitude,longitude;iconStyle;label

You can use the alias pp if you do not want to spell out pushpin.

A latitude and a longitude are required. You can optionally specify an icon style and a label for the pushpin. A length of a label string is limited to three characters.

The following table shows the options for specifying a pushpin.

Description Syntax

Specify a pushpin location.

latitude,longitude

Example: pushpin=47.620548,-122.34874

Specify a pushpin location and an icon style.

latitude,longitude;iconStyle

Example: pushpin=47.620548,-122.34874;5

Specify a pushpin location and a label.

latitude,longitude;;label

Ff701719.note(en-us,MSDN.10).gifNote:
The order of the syntax requires that if you specify a label without specifying an icon style, you must preserve the syntax and put two semi-colons between the coordinates and the label.

Example: pushpin=47.620548,-122.34874;;P10

Specify a pushpin location, an icon style, and a label. A label can have up to three (3) characters.

latitude,longitude;iconStyle;label

Example: pushpin=47.620548,-122.34874;5;P10

HTTP POST Syntax

If you use the HTTP POST method for specifying pushpins on a static map, you must include the pushpins in the body of the request.

When specifying multiple pushpins in the request body, you must the ampersand character (&) or a carriage return (\r\n) as a delimiter. Pushpins that follow a carriage return (appear on a new line) do not have ampersands.

The following examples show how to specify pushpins in the body of an HTTP POST request. For more information about this type of request, see Get a Static Map.

Example 1

pp=38.889586530732335,-77.05010175704956;23;LMT\r\n
pp=38.88772364638439,-77.0472639799118;7;KMT\r\n
pp=38.890479451480054,-77.04744637012482;1;VMT\r\n
pp=38.8896854931628,-77.03519403934479;45;WMT

Example 2

pp=38.889586530732335,-77.05010175704956;23;LMT&pp=38.88772364638439,-77.0472639799118;7;KMT\r\n
pp=38.890479451480054,-77.04744637012482;1;VMT&pp=38.8896854931628,-77.03519403934479;45;WMT

Icon Styles

The following table shows the available pushpin icon styles.

IconStyle Icon

0

Ff701719.5c74ad81-b8be-4674-a0a5-91bf2df38d55(en-us,MSDN.10).png

1 [default]

Ff701719.748904ec-4ee4-439a-a692-601a3bf7a239(en-us,MSDN.10).png

2

Ff701719.610e10d7-b486-4576-abaa-4a35b4adff48(en-us,MSDN.10).png

3

Ff701719.1a999390-a22b-4c76-a6f0-2efb53ccf4c7(en-us,MSDN.10).png

4

Ff701719.a7f9fc6f-1215-4b00-98ea-9b3ce24401c0(en-us,MSDN.10).png

5

Ff701719.83275ca6-a731-4af5-b29c-42324bed6455(en-us,MSDN.10).png

6

Ff701719.14d73593-1c35-4eef-a544-bedb9172092e(en-us,MSDN.10).png

7

Ff701719.f0ad0035-d443-45f3-9ba0-2f014134fdc0(en-us,MSDN.10).png

8

Ff701719.3714c528-3b4c-45f5-9536-77677f4d9c63(en-us,MSDN.10).png

9

Ff701719.f8ea8238-819b-4ba3-8445-5cf667fcf7bc(en-us,MSDN.10).png

10

Ff701719.0a4a9d6a-8c16-4401-994c-0ea86f6db8b2(en-us,MSDN.10).png

11

Ff701719.c62f5134-da4a-4495-877e-a6aaa2badcec(en-us,MSDN.10).png

12

Ff701719.22594e72-b742-47c1-8b16-16969593d73d(en-us,MSDN.10).png

13

Ff701719.e6259b02-fff8-46ca-8a08-ef0003ec5a46(en-us,MSDN.10).png

14

Ff701719.20ab02d8-0be0-4d74-a070-109cb548ed6d(en-us,MSDN.10).png

15

Ff701719.2472e5ef-50e2-4c32-bbb8-4ced383ea673(en-us,MSDN.10).png

16

Ff701719.f6f25ac9-b6cf-4554-91f0-dc68318e2aa1(en-us,MSDN.10).png

17

Ff701719.c999f081-c6a2-4ba2-a522-42c44cecd57b(en-us,MSDN.10).png

18

Ff701719.d9abfbdd-f4d4-4587-ba5c-92dc86642738(en-us,MSDN.10).png

19

Ff701719.f313363e-8e84-4fec-b8da-b3ad1ddc7731(en-us,MSDN.10).png

20

Ff701719.792d281f-7696-4574-befc-6abb33349438(en-us,MSDN.10).png

21

Ff701719.517c88d7-17c8-4f74-89b3-95fd0b28061c(en-us,MSDN.10).png

22

Ff701719.016673a3-0282-4dd2-95a9-59395a50f6e7(en-us,MSDN.10).png

23

Ff701719.76fee352-3881-4f27-8957-9b1daf1b33b3(en-us,MSDN.10).png

24

Ff701719.dc992382-ce01-4fa6-9444-2708c7089c31(en-us,MSDN.10).png

25

Ff701719.29127350-aeee-45ae-86d8-ae1b1401bc1a(en-us,MSDN.10).png

26

Ff701719.242afc4c-742f-4337-ad5c-890b043ab649(en-us,MSDN.10).png

27

Ff701719.6cfcd96c-fa3a-41bc-95ae-a312887c15d7(en-us,MSDN.10).png

28

Ff701719.71d658fe-bbe6-4d5b-a003-31168a4df81f(en-us,MSDN.10).png

29

Ff701719.2c751486-1ded-421c-be12-cd235576e1ce(en-us,MSDN.10).png

30

Ff701719.e1304c66-6e00-4b81-8534-847b9329cc34(en-us,MSDN.10).png

31

Ff701719.90196075-92c2-4d1c-a8f4-eebfd681099b(en-us,MSDN.10).png

32

Ff701719.5f14de64-bb5f-4410-8909-225d95885205(en-us,MSDN.10).png

33

Ff701719.564bed6d-cb69-40f2-88c0-082bc2503f55(en-us,MSDN.10).png

34

Ff701719.54d50e0c-5425-4cb1-bbdf-8c3da904b2ce(en-us,MSDN.10).png

35

Ff701719.fcefc81e-0d88-4cc9-97ee-dccc26b7ac77(en-us,MSDN.10).png

36

Ff701719.4e781e20-4767-4cb5-ae23-a25ae58cab88(en-us,MSDN.10).png

37

Pushpin Icon Style 37

38

Pushpin Icon Style 38

39

Pushpin Icon Style 39

40

Pushpin Icon Style 40

41

Pushpin Icon Style 41

42

Pushpin Icon Style 42

43

Pushpin Icon Style 43

44

Pushpin Icon Style 44

45

Pushpin Icon Style 45

46

Pushpin Icon Style 46

47

Pushpin Icon Style 47

48

Pushpin Icon Style 48

49

Pushpin Icon Style 49

50

Pushpin Icon Style 50

51

Pushpin Icon Style 51

52

Pushpin Icon Style 52

53

Pushpin Icon Style 53

54

Pushpin Icon Style 54

55

Pushpin Icon Style 55

56

Pushpin Icon Style 56

57

Pushpin Icon Style 57

58

Pushpin Icon Style 58

59

Pushpin Icon Style 59

60

Pushpin Icon Style 60

61

Pushpin Icon Style 61

62

Pushpin Icon Style 62

63

Pushpin Icon Style 63

64

Pushpin Icon Style 64

65

Pushpin Icon Style 65

66

Pushpin Icon Style 66

67

Pushpin Icon Style 67

68

Pushpin Icon Style 68

69

Pushpin Icon Style 69

70

Pushpin Icon Style 70

71

Pushpin Icon Style 71

72

Pushpin Icon Style 72
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.