Announcement

Collapse
No announcement yet.

How to implement a public non WMS tile set ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to implement a public non WMS tile set ?

    Hello

    I'm looking for a way to render a public map tile service such as mapbox or stamen onto a publicly available instance of Nasa Web World Wind.

    Mapbox and Stamen serve their tiles like this:
    http://api.mapbox.com/v4/mapbox.terrain/3/2/3.jpg
    http://tile.stamen.com/watercolor/3/2/3.jpg

    But NWWW appears to require WMS.

    Is there a clear example of how to implement this ?

    Thanks

  • #2
    Depending on the source imagery projection, this can be accomplished by using either the RestImageLayer or a customized UrlFactory with the MercatorTiledImageLayer.
    Zach
    World Wind Team
    https://github.com/NASAWorldWind

    Comment


    • #3
      Thanks Zach, I will see how far we get with those possibilities.

      When you write "RestImageLayer" do you mean "RestTiledImageLayer" https://nasaworldwind.github.io/WebW...mageLayer.html ?

      When you write "UrlFactory" do you mean "UrlBuilder" https://nasaworldwind.github.io/WebW...rlBuilder.html ?

      I guess mapbox and stamen are all mercator projections so perhaps MercatorTiledImageLayer makes sense. Are there any working examples of either method that I could take a look at ?

      Thanks

      Comment


      • #4
        A working example of MercatorTiledImageLayer with UrlBuilder would help me a lot.

        Comment


        • #5
          You're right on the naming, whoops!

          All of the Bing imagery layers are concrete implementations of MercatorTiledImageLayer with custom UrlBuilders. So take a look at BingAerialWithLabelsLayer and BingImageryUrlBuilder.
          Zach
          World Wind Team
          https://github.com/NASAWorldWind

          Comment


          • #6
            Hi Glueck, thank you for pointing me in the right direction.

            I must say I am having to hunt around a bit.

            Although BingAerialWithLabelsLayer does call MercatorTiledImageLayer it actually does this from: https://nasaworldwind.github.io/WebW...eLayer.js.html where we actually see the function in use.

            UrlBuilder use in BingImageUrlBuilder https://nasaworldwind.github.io/WebW...uilder.js.html looks like enough information to go on, but I may come back with some more questions.

            Thanks

            Comment

            Working...
            X