way in R or Python to add image/video in map plot marker click popup/infowindow

المشرف العام

Administrator
طاقم الإدارة
I have many different (lat,long data) points of world associated with unique place names and corresponding each point specific image or video data. Now I want to create an html file where if user click on each point they can see that specific image or video in the pop-up/infowindow. Previously I have successfully used html files with my shiny web application.

Target examples links are as below but they are all in Java:

1.custom image in marker[http://en.marnoto.com/2014/09/5-formas-de-personalizar-infowindow.html]

2.custom video in marker

[1]: http://en.marnoto.com/2014/09/5-formas-de-personalizar-infowindow.html
  1. streetview image in marker[http://jsfiddle.net/sST8z/]
var map;var mapOptions = { center: new google.maps.LatLng(0.0, 0.0), zoom: 2,mapTypeId: google.maps.MapTypeId.ROADMAP };function initialize() {map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);street = new google.maps.StreetViewPanorama(document.getElementById("street"), { position: new google.maps.LatLng(40.72982797782924, -73.98622512817383),zoomControl: false,enableCloseButton: false,addressControl: false,panControl: false, linksControl: false});var infow = new google.maps.InfoWindow({ content: document.getElementById("street")});var myLatLng = new google.maps.LatLng(40.72982797782924, -73.98622512817383);var marker = new google.maps.Marker({ position: myLatLng, map: map, visible: true });infow.open(map, marker);map.setCenter(myLatLng);}google.maps.event.addDomListener(window, 'load', initialize);First I have tried with plotGoogleMaps, there I have to manually change the generated html file javascript section code for each marker so it is becoming a lot of manual work. So alternatively Is there any way to achieve the same in " leaflet " or " rleafmap " R package or any other combination of R-based package ?

I am more from R less from Python, is there any easy solution exists in Python at least to generate that html page. I just want to build that html file so that I can use in shiny web framework.



أكثر...
 
أعلى