User Tools

Site Tools


map_suite_webapi_markers_and_popups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_webapi_markers_and_popups [2015/11/12 20:49]
mwolffer [Video Overview]
map_suite_webapi_markers_and_popups [2015/12/03 09:41] (current)
tgwikiupdate [Video Overview]
Line 2: Line 2:
  
 ===== Video Overview ===== ===== Video Overview =====
-{{youtube>​JYr082O40Uo?large |Web API Markers and Pop Ups Learning Sample}}+{{youtube>​CIoHHqK5U6s?large |Web API Markers and Pop Ups Learning Sample}} 
 +<div newline></​div>​ 
 +<div download_viewsource_buttons tryitonline>​ 
 +{{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)]]
  
 +</​div>​
  
 ===Overview=== ===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.+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 ==== ==== Markers ====
Line 16: Line 23:
 </​div>​ </​div>​
  
-We put a marker on the map. Set up a custom ​icon for the markerThe marker ​can be dragged on the map. Its position can be modified by clicking on map. In the Openlayers, the marker is implemented by vector layer.+Developers can use custom ​icons as their markersMarkers ​can then be dragged ​anywhere ​on the map.
 <div newline></​div>​ <div newline></​div>​
 <div newline></​div>​ <div newline></​div>​
Line 26: Line 33:
 </​div>​ </​div>​
  
-We put a marker ​on the map, it binds a popup. ​The popup can be showed ​or hided by clicking ​marker. The position of the popup will be synchronized with the marker’s positionThe sample sets the current ​marker’s position to popup’s content. In the Openlayers, the popup is implemented by overlay.+With the marker ​users can also get a popup with the location informationUsers can show or hide the popup information ​by clicking ​on the marker. ​If marker ​is movedthe location information is automatically updated on the popup.
  
  
 <div newline></​div>​ <div newline></​div>​
 <div newline></​div>​ <div newline></​div>​
map_suite_webapi_markers_and_popups.1447361355.txt.gz · Last modified: 2015/11/12 20:49 by mwolffer