Timeline for django leaflet custom popups
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 29, 2018 at 17:02 | vote | accept | Chris Papas | ||
Mar 29, 2018 at 17:02 | comment | added | Chris Papas | i find solution you are correct is very useful thank you | |
Mar 29, 2018 at 16:46 | comment | added | Chris Papas | that i need is a very nice example thank you now i need to add my project | |
Mar 29, 2018 at 16:44 | comment | added | Bill Chappell | Sure right click on it view source. Copy/paste to a text file, save as html. For the data go to gistechsolutions.com/leaflet/DEMO/baseball/BaseBallFinal.json and copy paste to a text file, save as BaseBallFinal.json. Place both in your web folder and it should work. | |
Mar 29, 2018 at 16:41 | comment | added | Chris Papas | can i download this code from Baseball.html ? | |
Mar 29, 2018 at 16:29 | comment | added | Bill Chappell | My table has an id tag, the first cell it writes to is called f1, In the onEachFunction, I setup a layer.on click function an inside that I grab the values and using a document.getElementById('f1') I send the value to the f1 cell. Here is an example using a div side panel. gistechsolutions.com/leaflet/DEMO/baseball/Baseball.html The two lines in the JavaScript can be shortened to document.getElementById('f1').innerHTML=e.target.feature.properties.kalcode.toString(); That might help. | |
Mar 29, 2018 at 16:20 | comment | added | Chris Papas |
thank you for helpe me i try to follow your details but in f1 don't show me somethink any idea why ? here the code : onEachFeature:function (feature,layer) { var field1=document.getElementById('f1'); field1.innerHTML=e.target.feature.properties.toString(); layer.bindPopup(feature.properties.kalcode.toString()) } });
|
|
Mar 29, 2018 at 16:03 | history | answered | Bill Chappell | CC BY-SA 3.0 |