[INFO/WEB] Landmarks v0.2 - with DynMap addon [953]

Discussion in 'Inactive/Unsupported Plugins' started by DFYX, Apr 7, 2011.

  1. Offline


    Version: v0.2
    Tested with Craftbukkit 953/Dynmap 0.19.1


    This plugin lets you define landmarks that will be saved into a JSON file, similar to the old MapMarkers for hMod. I have included a DynMap component that shows those landmarks as little icons on the map.

    If you like this, why not donate a few bucks? But don't worry, this plugin will always be free.​

    • Set and delete landmarks
    • Display them on a DynMap
    • Full support for multiple worlds
    Download Landmarks 0.2 (Jar only, dynmap component only)
    Source Code
    Older versions: 0.1.1, 0.1

    /landmark add <name>
    Set a new landmark to your current position. Name may contain spaces.
    /landmark modify <name>
    Set update an existing landmark to your current position. Name may contain spaces.
    /landmark set <name>
    Shortcut for add or modify depending if there already is a landmark with this name. Name may contain spaces.
    /landmark delete|del|remove <name>
    Remove an existing landmark. Name may contain spaces.

    (All permissions include the rights to use the matching aliases and shortcuts such as /landmark set)
    The player may use /landmark add
    The player may use /landmark modify on his own markers
    The player may use /landmark modify on all markers
    The player may use /landmark remove on his own markers
    The player may use /landmark remove on all markers

    • List existing landmarks
    • Show information like creator and time (already included in JSON file)
    • Think about priorities or grouping
    • Different icons? Probably larger icons for higher zoom levels.
    • Save display settings in cookies
    1. Just unpack the contents of the zip file into your bukkit folder.
    2. If you want to use the DynMap component:
      1. Go to plugins/Landmarks/config.yml and set markersfile to ../dynmap/web/markers.json
      2. If you have copied your dynmap/web folder to your Apache folder (as described in DynMap's setup instructions), use that path instead or use a symlink
      3. Go to plugins/dynmap/configuration.txt, find "components:" and add the following below it:
          - class: org.dynmap.ClientComponent
            type: landmarks
      4. Optional: to display the settings panel, add the following just above what you added in the last step:
          - class: org.dynmap.ClientComponent
            type: settings
    There's also a more detailed howto for Linux users below. Thanks, paccer!

    Version 0.2
    • Permissions support
    • New settings panel where people can select if they want to see the markers and marker texts (optional). See setup instructions step 2.4
    • Markers are now automatically removed from dynmap without reloading the page
    • New commands add and modify (they do basically the same as set, but you won't accidentally update an existing marker when you want to add a new one or the other way round)
    • The default config now contains the correct markersfile path for dynmap
    Version 0.1.1
    • Included config.yml and removed markers.json (will be created automatically)
    • Added a 2 pixel semi-transparent white border around the landmark icons
    • No changes to the jar file itself!
  2. This plugin looks amazing! I got really excited when I saw it. But I can't get it to work on my map.
    Running RB670, DynMap 0.15, and I downloaded the 0.1.1 fixed archive. Followed all the instructions in the OP. I can create landmarks in game, and they show up in markers.json. But they don't show up on my map :(
    I'm using Dynmaps internal web server, pointed to my IIS web folder. Dynmaps web folder is located at C:\inetpub\wwwroot\dynmap, and this is where I copied the three folders, and set the markers.json location to in the config.
  3. Offline


    Maybe in a later version.

    It should be a sub-node of 'web:'. Just copy the section from paccer's tutorial and make sure it's correctly indented (2 spaces for 'components:', 4 spaces for all lines beginning with '-', 6 spaces for the others)

    My plugin outputs the markers in JSON format which is quite easy to parse. So yes, with a little work, you could use any renderer.

    Yes, that's possible. I'll add that in the next version.

    Try this.

    Both suggestions are on my internal todo list.

    Might be a problem with the backslashes in Windows-style paths. Try C:/inetpub/wwwroot/dynmap or C:\\inetpub\\wwwroot\\dynmap
  4. Offline


    It would be nice to be able to scale up/down the size of the landmark icons or set them to always display the text. Tried replacing the existing with one to use the entire 16x16 size but it gets cut off on the right side.
  5. Offline


    To use a 16x16 image, make sure you have a 16x16 landmark.png in the images folder, and then edit the \web\css\landmarks.css file:
    .dynmap .landmarkMarker {
        background-image: url(../images/landmark.png);
        width: 14px;  /* <-- change this */
        height: 14px;  /* <-- change this */
  6. Offline


    hm i have now install the fix, but the landmarks are only shown as "mouse over" and now icon.

    Is there a way to show them permanently?
  7. That bit of it works fine. I can see it creating the markers.json file in the right place.
    Since I'm running under IIS7, I have to change the line in config.js in the dynmap web folder from "up/" to "up.aspx?path=". If I leave it as "up/" and access my map through port 8123, I can see the landmarks. But when I change it to "up.aspx?path=" and then access the map through [web address]/dynmap I can't see them.
  8. Offline


    Add a menu point "Landmarks" to the slidermenu of DynMap to jump to Landmarks like u can jump to players =)

    Change the content Landmarks.css in the Dynmap/web/css folder to this:

    .dynmap .landmarkMarker {
        background-image: url(../images/landmark.png);
        width: 14px;
        height: 14px;
        padding: 0px;
        margin-top: -7px;
        margin-left: -7px;
        position: absolute;
        z-index: 100;
    .dynmap .landmarkMarker .landmarkName {
        display: block;
        background: none repeat scroll 0 0 rgba(0, 0, 0, 0.6);
        border-radius: 3px 3px 3px 3px;
        color: #FFFFFF;
        padding: 2px;
        position: absolute;
        top: 10px;
        left: 10px;
    just used that for my own server ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
  9. Offline


    great it works!

    thank you!

  10. Offline


    np the OP should add an option to show them permanently to his plugin but as long as its just CSS I can do it myself :p
  11. I'm upset mine doesn't work! It just seems to have had a fallout with IIS7 :(

    EDIT: Holy moo moo. I've got it working :D Turns out IIS didn't know how to serve json files. So I just added .json to the MIME types, and now it works brilliantly. I love this plugin!
    Going to go and fill my map with landmarks now!
  12. Offline


    Not that there was anything wrong with your little houses, but I changed up the icon and the .css so I could use little flags I made. The result is markers that are placed at the exact point that you are standing. You can see them here zoomed all the way out and all the way in. You can check it out on my live map at http://server.kitecraft.net:8600 and if you're interested in the files, you can grab the zip here... http://kitecraft.net/files/landmarks.zip Thanks for the great plugin. One suggestion, could you make it ops only until you add permissions? I don't want my map covered in random markers.

    harakiwi likes this.
  13. Oh wow, I like the flags. They stand out really well on my map now. Thanks!
  14. Offline


    suggest: make it possible to set the size of the houses. i would be happy if i can choose a set of houseicons that are bigger than now, like KhiloWhiskey did with his flags.

    and created landmarks will only be shown on dynmap after server restart? is there a possibility to make it instantly showing, i.e. with a command "/landmark reload"?
  15. Offline


    They show right when you add them. If link is right, you will see the mark as soon as you refresh the map. I should note that you can resize my flag or the house with the .CSS file, but you'll need to tweak it a bit to be sure that it lands right where you're standing when you use the command.
  16. Offline


    The markers.json is saved instantly and dynmap reloads them whenever the map data itself updates which is whenever you zoom, scroll or just wait a few seconds.
  17. Offline


    my writing console
    04:08 10:00:35 INFO server-1: [Server] INFO [Landmarks] Loading / home / multicraft / servers / MedaCraft / plugins / Landmarks / markers.json
    04:08 10:00:35 INFO server-1: [Server] INFO [Landmarks] Successfully loaded 1 markers.
    04:08 10:00:35 INFO server-1: [Server] INFO [Landmarks] Landmarks 0.1 enabled.
    but on my page it showed me the marks not
  18. You haven't set the location of markers.json to the correct place for it to work with DynMap. You need to follow the instructions in the OP.
    Specifically "1. Go to plugins/Landmarks/config.yml and set markersfile to ../dynmap/web/markers.json"
    and "3. Go to plugins/dynmap/configuration.txt, find "components:" and add a line with " - type: landmarks" below it. There should be other similar lines around."
    Then reload your server.
  19. Offline


    it does not work still might have somebody who has it geschft create a youtube tutorial
  20. Offline


    Are you sure your config.yml is correct? I've looked at your server and markers.json doesn't show up at all.

    P.S.: Nur der Grammatik nach geraten: dir wäre eine Deutsche Anleitung lieber?
  21. Offline


    Litte post in german as name and grammer of ToastHelmi appeal quite familiar to me and I think he might understand it better this way ;)
    Sollt da nicht eher Loading / home / multicraft / servers / MedaCraft / plugins / dynamp / web / markers.json stehen?
    Musst also wahrscheinlich noch die config.yml, wie im ersten Post beschrieben, bearbeiten - also "markers.json" austauschen zu "../dynmap/web/markers.json", dann sollte es gehen.
  22. Don't forget to edit DynMap's config file aswell!
  23. Offline


    true forgot that one
  24. Offline


    dynmap conig:
    - type: landmarks
    - type: chat
    - type: chatballoon
    focuschatballoons: false
    - type: chatbox
    showplayerfaces: true
    messagettl: 5
    - type: playermarkers
    showplayerfaces: true
    #- type: digitalclock
    - type: timeofdayclock
    showdigitalclock: true
    landmarks cofig:
    markersfile: /dynmap/web/markers.json

    and it doesent work
  25. Offline


    it has to be "markersfile: ../dynmap/web/markers.json", the POINTS are important
    ToastHelmi likes this.
  26. Offline


    Hey there:
    I wrote a python script to import the data from Interesting Places to this plugin. Places the python file in the same folder as places.txt, run it, and it'll generate a markers.json with all your places from Interesting Places in it.

    It requires one command line argument: The owner of all the places (i.e. your in-game MC name).
    So for example, I'd run it as:
    interestimport.py Crazydog115
    And that would assign all the landmarks to me.


    Web-based version:
    No download required. Simply copy the contents of places.txt into the textarea, and hit submit!

    You must stop the server before overwriting markers.json, or it will be overwritten when the server is stopped!

    The only limitation I see is that if you have a world named 'xyz', or a wold with spaces in the name, you will have issues!
  27. Offline


    Your first link leads to an error 403
  28. Offline


    my bad. ill fix in about an hour
  29. Offline


    Btw: support for Permissions is done. I'll upload it as soon as some other stuff is done, too. If you need it earlier, compile the source
  30. Offline


    Fixed....it's now wrapped in a zip. Enjoy!
  31. Offline


    Can I see a full example of a dynmap config that is set to use this? I have no idea where components are located and a search for the word turns up nothing. So, I am lost.

Share This Page