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 - JavaScript Tutorial
From the course: JavaScript for Web Designers
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.