From the course: JavaScript for Web Designers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add a marker

Add a marker - JavaScript Tutorial

From the course: JavaScript for Web Designers

Start my 1-month free trial

Add a marker

- [Narrator] While the map is centered on our store, it would still be nice to have a visual indicator right on that map showing the store. Let's figure out how to do that with Bing's tools. Looking over here at the documentation, I can see that we have something called the map control concepts. This sounds a lot like terminology which I think is what we need now. We need to know what Bing calls those little indicators on the map. Pushpins looks promising. Let's take a look at that. Yeah, map icons or markers. Great, this is just what we want. Let's try the first example. This looks an awful lot like what we have already. Right here is where the custom pushpin is created, so we're going to just copy this example code, right here. Bring it over and give it a try. Our map is defined up here and now we're going to define this pin. We're using the Microsoft.maps.pushpin class here and they are putting their pin right…

Contents