There are 2 ways to add something to Leaflet map:Can I somehow include monster images (from spawns) and maybe even NPCs to show my players? And where can I read more on how I can work with OTClient?
Thank you for this great thing you made
- draw image on map - OTClient can draw monster image on monster position from map .xml file, but it will be hard to find on map (player must zoom in very close to see monsters)
- add 'marker' [like 'point' on Google Maps] - PHP or OTClient can 'unpack' .xml file to list of monster/NPC names and positons in JSON (javascript) format, then Leaflet can add these points on map with 'monster images' as 'icons' ( http://leafletjs.com/examples/custom-icons.html )
Second option is better, because you can add 'search box' on website in which user can type 'Demon' and view on map all Demons spawns, it would be hard to show all 50.000 monsters (map would be unreadable.. webbrowser would freez with so many elements on website).