====== Map Suite WebAPI Markers and Popups====== ===== Video Overview ===== {{youtube>CIoHHqK5U6s?large |Web API Markers and Pop Ups Learning Sample}}
{{filehistory:WebAPIEditionSample_MarkersAndPopUps_CS_151111.zip|C# Project}} [[source_code_webapieditionsample_markersandpopups.zip|View Source]] [[http://samples.thinkgeo.com/WebApiEdition/SampleTemplates/MarkerAndPopup/leaflet/|Try It Online(Leaflet)]] [[http://samples.thinkgeo.com/WebApiEdition/SampleTemplates/MarkerAndPopup/openlayers/|Try It Online(Openlayers)]]
===Overview=== This sample shows you how to use markers and popups. Markers can be dragged across the map in order to place them on a new location anywhere on the map. By clicking on the marker users are able to see a popup with the location information. In this sample we are using both Leaflet and Openlayers. ==== Markers ====
{{webapiedition:DrawMarkers_Desktop.png?300}} \\ //A marker with custom icon.//
Developers can use custom icons as their markers. Markers can then be dragged anywhere on the map.
==== Markers and Popups ====
{{webapiedition:DrawMarkersAndPopups_Desktop.png?300}} \\ //A marker binds a popup.//
With the marker users can also get a popup with the location information. Users can show or hide the popup information by clicking on the marker. If marker is moved, the location information is automatically updated on the popup.