Author Topic: [Overlay] Tile Number Overlay  (Read 1808 times)

Offline ta-ka

  • Premium
  • Padavan of Locus
  • ***
  • Posts: 251
  • Thanked: 3 times
    • View Profile
  • Device: SGNoteEdge
[Overlay] Tile Number Overlay
« on: October 31, 2013, 17:58:06 »
This is interesting, isn't it?



Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<providers>
    <provider id="11800" type="0" visible="true" background="-1">
        <name>Tile Number</name>
        <mode>Type 0 : Spheric, Inverse Y</mode>
        <url><![CDATA[http://chart.apis.google.com/chart?chs=256x256&chf=bg,lg,45,efefef80,0,bbbbbb80,1&chst=d_text_outline&chld=ff0000|22|h|ffffff|b||||Zoom%20{z}|X,Y%20%20:%20%20{x},%20{y}|||||_____________________]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>8</zoomMin>
        <zoomMax>30</zoomMax>
        <tileSize>256</tileSize>
        <attribution><![CDATA[Type 0 - Mercator projection, Spheric, Inverse Y]]></attribution>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
    <provider id="11801" type="1" visible="true" background="-1">
        <name>Tile Number</name>
        <mode>Type 1 : Spheric, Normal Y</mode>
        <url><![CDATA[http://chart.apis.google.com/chart?chs=256x256&chf=bg,lg,45,efefef80,0,bbbbbb80,1&chst=d_text_outline&chld=ff0000|22|h|ffffff|b||||Zoom%20{z}|X,Y%20%20:%20%20{x},%20{y}|||||_____________________]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>8</zoomMin>
        <zoomMax>30</zoomMax>
        <tileSize>256</tileSize>
        <attribution><![CDATA[Type 1 - Mercator projection, Spheric, Normal Y]]></attribution>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
    <provider id="11802" type="2" visible="true" background="-1">
        <name>Tile Number</name>
        <mode>Type 2 : Ellipsoid, Inverse Y</mode>
        <url><![CDATA[http://chart.apis.google.com/chart?chs=256x256&chf=bg,lg,45,efefef80,0,bbbbbb80,1&chst=d_text_outline&chld=ff0000|22|h|ffffff|b||||Zoom%20{z}|X,Y%20%20:%20%20{x},%20{y}|||||_____________________]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>8</zoomMin>
        <zoomMax>30</zoomMax>
        <tileSize>256</tileSize>
        <attribution><![CDATA[Type 2 - Mercator projection, Ellipsoid, Inverse Y]]></attribution>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
    <provider id="11803" type="3" visible="true" background="-1">
        <name>Tile Number</name>
        <mode>Type 3 : Ellipsoid, Normal Y</mode>
        <url><![CDATA[http://chart.apis.google.com/chart?chs=256x256&chf=bg,lg,45,efefef80,0,bbbbbb80,1&chst=d_text_outline&chld=ff0000|22|h|ffffff|b||||Zoom%20{z}|X,Y%20%20:%20%20{x},%20{y}|||||_____________________]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>8</zoomMin>
        <zoomMax>30</zoomMax>
        <tileSize>256</tileSize>
        <attribution><![CDATA[Type 3 - Mercator projection, Ellipsoid, Normal Y]]></attribution>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
    <provider id="11804" type="4" visible="true" background="-1">
        <name>Tile Number</name>
        <mode>Type 4 : Spheric, Y from Center</mode>
        <url><![CDATA[http://chart.apis.google.com/chart?chs=256x256&chf=bg,lg,45,efefef80,0,bbbbbb80,1&chst=d_text_outline&chld=ff0000|22|h|ffffff|b||||Zoom%20{z}|X,Y%20%20:%20%20{x},%20{y}|||||_____________________]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>8</zoomMin>
        <zoomMax>30</zoomMax>
        <tileSize>256</tileSize>
        <attribution><![CDATA[Type 4 - Mercator projection, Spheric, Y from Center]]></attribution>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
    <provider id="11805" type="5" visible="true" background="-1">
        <name>Tile Number</name>
        <mode>Type 5 : Spheric, Quadkey</mode>
        <url><![CDATA[http://chart.apis.google.com/chart?chs=256x256&chf=bg,lg,45,efefef80,0,bbbbbb80,1&chst=d_text_outline&chld=ff0000|22|h|ffffff|b||||Quadkey|{c}|||||_____________________]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>8</zoomMin>
        <zoomMax>30</zoomMax>
        <tileSize>256</tileSize>
        <attribution><![CDATA[Type 5 - Mercator projection, Spheric, Quadkey]]></attribution>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
</providers>

To understand the parameters for background color/transparency/gradation and font size/color/position, please refer the links below.
http://imagecharteditor.appspot.com/ -> Editor tab -> Fills -> Background
https://developers.google.com/chart/image/docs/gallery/dynamic_icons#outlined_text
 

Offline gynta

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 3548
  • Thanked: 40 times
    • View Profile
    • Locus live tracking service
  • Device: SM-A530F(A8) Android 8.0.0
Re: [Overlay] Tile Number Overlay
« Reply #1 on: October 31, 2013, 18:27:02 »
Quote from: ta-ka
This is interesting, isn't it?
nope  ;D

:-X

Offline ta-ka

  • Premium
  • Padavan of Locus
  • ***
  • Posts: 251
  • Thanked: 3 times
    • View Profile
  • Device: SGNoteEdge
Re: [Overlay] Tile Number Overlay
« Reply #2 on: October 31, 2013, 18:41:44 »
sad... :'(
but it's ok. ;D