OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>

New versions online maps management: onlinemapsources.xml

Page 1 of 2 1, 2  Next

Go down

New versions online maps management: onlinemapsources.xml Empty New versions online maps management: onlinemapsources.xml

Post  orux on Thu May 19, 2011 3:51 pm

Hi, all;

No more problems with online sources.

Starting from 3.5.8beta, each user can select/add new online sources.

The configuration file is installed in: oruxmaps/mapfiles/onlinemapsources.xml

Each map has this tags:

Code:

<onlinemapsource uid="0"> <!--uid must be an unique integer per map. Used to store the tiles in the cache-->

<name>Google Maps</name> <!--the name of the map-->

<url>http://mt{$s}.google.com/vt/lyrs=m@121&hl={$l}&x={$x}&y={$y}&z={$z}</url><!--url of the map web site.
{$s} will be replaced randmoly with one of the servers in the 'servers' tag
{$l} replaced with device locale, example 'es_ES'
{$x} x tile value
{$y} y tile value
{$z} zoom level
{$q} quad encoded value, from x,y,z
You can apply operations to x,y,z,q values before replacing (below xop, yop,...)-->

<minzoom>0</minzoom>
<!--minimum zoom level-->

<maxzoom>19</maxzoom>
<!--maximum zoom level-->

<projection>MERCATORESFERICA</projection>
<!--allowed: MERCATORESFERICA, MERCATORELIPSOIDAL-->

<servers>0,1,2,3</servers>
<!--comma separated possible servers-->

<httpparam name=""></httpparam>
<!--not in use-->

<xop></xop><!--operation to apply to x value before replacing
allowed values: 1-->

<yop></yop><!--operation to apply to y value before replacing
allowed values: 0, 1-->

<zop></zop><!--operation to apply to z value before replacing
allowed values: 1-->

<qop></qop><!--operation to apply to q value before replacing
allowed values: 2-->

<!--Current operations
0: inverse y: (2^z - 1 - y)
1: plus one: (val + 1)
2: add a '/' each 6 characters-->
</onlinemapsource>

research, imagine, ask,...
and you will be able to add many new sources.

_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  pedja on Mon May 23, 2011 7:52 am

Why limiting to online sources? Similar technique may be used for offline sources too.

pedja

Cantidad de envíos : 111
Fecha de inscripción : 2010-12-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux on Mon May 23, 2011 8:47 pm

pedja wrote:Why limiting to online sources? Similar technique may be used for offline sources too.

Hi, pedja; I do not understand.

Offline maps have always its own xml file; you can add/remove the offline maps if you want.

orux

_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  pedja on Tue May 24, 2011 8:17 am

I meant offline maps in other formats. For example, I have maps that are prepared to be used offline and they have exact tiling scheme as online maps, so the only difference is in path which from tiles are loaded.

pedja

Cantidad de envíos : 111
Fecha de inscripción : 2010-12-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty onlinemapsources.xml

Post  santoo on Wed Jun 01, 2011 8:04 pm

hey orux, i really, REALLY love the feature of adding new online maps - thanks a LOT for this!

just a quick question/suggestion: when we install a new version of oruxmaps - one, in which YOU have updated the list of onlinemaps yourself, because e.g. some maps are no longer available, because there are copyright issues, because you have added new ones, etc - wont this overwrite the xml and therefore the maps we have added until then? Or will you merge the old and the new xml? If you don't merge, but simply overwrite - could i suggest splitting mapsources into 2 files: e.g.
.) onlinemapsources.xml (which comes standard with every version of oruxmaps) and
.) onlinemapsources_user.xml (where we can permanently store our personal onlinemaps and which will not be changed by installing a new version of oruxmaps)

thanks for the very best offroad mapping/tracking/navigation/geocaching application there is!

santoo
Guest


Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux on Thu Jun 02, 2011 5:11 pm

santoo wrote:hey orux, i really, REALLY love the feature of adding new online maps - thanks a LOT for this!

just a quick question/suggestion: when we install a new version of oruxmaps - one, in which YOU have updated the list of onlinemaps yourself, because e.g. some maps are no longer available, because there are copyright issues, because you have added new ones, etc - wont this overwrite the xml and therefore the maps we have added until then? Or will you merge the old and the new xml? If you don't merge, but simply overwrite - could i suggest splitting mapsources into 2 files: e.g.
.) onlinemapsources.xml (which comes standard with every version of oruxmaps) and
.) onlinemapsources_user.xml (where we can permanently store our personal onlinemaps and which will not be changed by installing a new version of oruxmaps)

thanks for the very best offroad mapping/tracking/navigation/geocaching application there is!

Hi, thanks;

New installations would not overwrite that file.

The next version will include the file, but next to next will not. The user must go to the web, or other places to look for that file.

I want no more problems with the owners of the maps Smile

orux

_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  valley on Sat Jun 11, 2011 11:22 am

A comment on using google tile server as an online resource:

using ahe link such as mt1.google.com/vt/hl=iw&x=305&y=208&z=9&lyrs=t

the lyrs parameter yields

h skeleton map light
m full map
p terrain+map
r skeleton map dark
y hybrid satellite map
t terrain
s satellite map

you can also use some combinations, such as s,r or t,h etc.

valley
Guest


Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Max zooms

Post  valley on Sat Jun 11, 2011 11:53 am

h skeleton map light 22
m map 22
p terrain+map 15
r skeleton map dark 22
y hybrid satellite map 18
t terrain 15
s satellite 18

valley
Guest


Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Great

Post  Th on Tue Jul 12, 2011 5:29 pm

I ve just descovered oruxmaps... but "great job team!".

Your app is so opened... it s just happiness.

I have change my google earth map by " lyrs=y" and it works!

Thanks to Valley for all codes. I was looking for something like "t,y". But it don t works.

Good Job all and thanks for all.

Th
Guest


Back to top Go down

New versions online maps management: onlinemapsources.xml Empty opencyclemap changed

Post  valleyofdawn on Wed Aug 17, 2011 10:54 am

This is the onlinemapsources file I use now. You may want to change the map language parameter.

<?xml version="1.0" encoding="utf-8"?>
<onlinemapsources>

<onlinemapsource uid="0">
<name>Google Maps</name>
<url><![CDATA[http://mt{$s}.google.com/vt/lyrs=m@121&hl=iw&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="1">
<name>Google Earth</name>
<url><![CDATA[http://khm{$s}.google.com/kh/v=76&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>18</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="2">
<name>Google Terrain</name>
<url><![CDATA[http://mt{$s}.google.com/vt/lyrs=t,r&hl=iw&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>15</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>


<onlinemapsource uid="3">
<name>Google Hybrid</name>
<url><![CDATA[http://mt{$s}.google.com/vt/lyrs=s,m&hl=iw&x={$x}&y={$y}&z={$z}]]></url>
<minzoom>0</minzoom>
<maxzoom>15</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>0,1,2,3</servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="4">
<name>OSM Cyclemap</name>
<url><![CDATA[http://{$s}.tile.opencyclemap.org/cycle/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>a,b,c</servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="5">
<name>OSM Mapnik</name>
<url><![CDATA[http://tile.openstreetmap.org/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>18</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="6">
<name>Bing Maps</name>
<url><![CDATA[http://r0.ortho.tiles.virtualearth.net/tiles/r{$q}.png?g=45]]></url>
<minzoom>1</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="7">
<name>Bing Earth</name>
<url><![CDATA[http://a0.ortho.tiles.virtualearth.net/tiles/a{$q}.jpg?g=45]]></url>
<minzoom>1</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="8">
<name>Bing Hybrid</name>
<url><![CDATA[http://h0.ortho.tiles.virtualearth.net/tiles/h{$q}.jpg?g=45]]></url>
<minzoom>1</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

<onlinemapsource uid="9">
<name>Hike and Bike</name>
<url><![CDATA[http://toolserver.org/tiles/hikebike/{$z}/{$x}/{$y}.png]]></url>
<minzoom>0</minzoom>
<maxzoom>18</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>


</onlinemapsources>

valleyofdawn

Cantidad de envíos : 23
Fecha de inscripción : 2010-12-26

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty another source: OSM from microsoft

Post  valleyofdawn on Fri Aug 19, 2011 7:31 am

It's the same data as openstreetmap mapnik, but a different, faster server.

<onlinemapsource uid="99">
<name>Bing OSM</name>
<url><![CDATA[http://a.osm.virtualearth.net/tiles/{$z}/{$x}/{$y}.png]]></url>
<minzoom>1</minzoom>
<maxzoom>18</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers>a,b,c</servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

valleyofdawn

Cantidad de envíos : 23
Fecha de inscripción : 2010-12-26

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Help needed in general editing of this file

Post  BpACKer on Tue Aug 30, 2011 12:56 am

I added a new map source, checked to make sure it worked, and it did. So I went back and put comment tags around the sources I didn't want and it doesn't work. The only online source it shows is the WMS file. I've also flat out removed the sources I didn't want, same result. Why? I clicked the map reset button too.

Example:

I don't need CycloAtlas so I did this (notice comment tag surrounding):

Code:
<!--
<onlinemapsource uid="27">
<name>CykloAtlas (CZ, SK)</name>
<url><![CDATA[http://services.tmapserver.cz/tiles/gm/shc/{$z}/{$x}/{$y}.png]]></url>
<minzoom>7</minzoom>
<maxzoom>15</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
</onlinemapsource>
-->
BpACKer
BpACKer

Cantidad de envíos : 25
Fecha de inscripción : 2011-04-04
Localización : Texas, USA

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux on Wed Aug 31, 2011 3:32 pm

BpACKer wrote:I added a new map source, checked to make sure it worked, and it did. So I went back and put comment tags around the sources I didn't want and it doesn't work. The only online source it shows is the WMS file. I've also flat out removed the sources I didn't want, same result. Why? I clicked the map reset button too.

Example:

I don't need CycloAtlas so I did this (notice comment tag surrounding):

It should work.

1.-Check that you do not include comments (<!-- ... <!-- ... --> ... -->) inside other comment.
2.-And you do not comment fisrt/last tags:
<?xml version="1.0" encoding="utf-8"?>

<onlinemapsources>

....
</onlinemapsources>

And 'reset map sources' when in online map list.

orux



_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty RE: HELP NEEDED IN GENERAL EDITING OF THIS FILE

Post  BpACKer on Wed Aug 31, 2011 9:27 pm

Thanks, Orux. I'm going to chalk it up to "pilot" error. i know a lot of programming issues are stupid little programmer mistakes so i must've done something weird. I have now successfully removed maps I don't need, although I ended up removing them entirely, rather than using comment tags.
BpACKer
BpACKer

Cantidad de envíos : 25
Fecha de inscripción : 2011-04-04
Localización : Texas, USA

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  KKS on Wed Aug 31, 2011 10:24 pm

Hello, how I can do some math operation with coordinates?
For example: google x=2356 y=0 it's x=2356 y=2000 at my map, google y=1, at my map y=1999 so I need 2000-$y=$y_to_orux

How I can do this?

KKS

Cantidad de envíos : 4
Fecha de inscripción : 2011-08-31

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty US topo maps

Post  BpACKer on Thu Sep 01, 2011 8:42 pm

I found a working US topo map url in this forum post: http://osgeo-org.1803224.n2.nabble.com/mytopo-layer-for-USGS-topo-insead-of-terraservice-tp5700129p6518352.html .

Just replace the 3 numbers at the end with the z, x, y variables. Zoom range is 10-16.


Last edited by BpACKer on Sun Oct 16, 2011 5:59 pm; edited 1 time in total (Reason for editing : link was including period at end)
BpACKer
BpACKer

Cantidad de envíos : 25
Fecha de inscripción : 2011-04-04
Localización : Texas, USA

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux on Sat Sep 03, 2011 5:14 pm

KKS wrote:Hello, how I can do some math operation with coordinates?
For example: google x=2356 y=0 it's x=2356 y=2000 at my map, google y=1, at my map y=1999 so I need 2000-$y=$y_to_orux

How I can do this?

Hi;

Not all operations are allowed;

I have to hardcode the operations, because there is no script support in java - android.

Which operation do you need exactly?

orux

_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  KKS on Sun Sep 04, 2011 3:47 pm

orux wrote:
Hi;

Not all operations are allowed;

I have to hardcode the operations, because there is no script support in java - android.

Which operation do you need exactly?

orux
Exactly I want do this: 2^$z-1-$y. I want to add Visicom maps, its Ukraine, Belarus and Estonian maps
http://maps.visicom.ua/

tile url is: http://tms3.visicom.ua/1.0.3/world_ua/$z/$x/((2^$z)-1-$y).png

Example url's:
http://tms3.visicom.ua/1.0.3/world_ua/6/36/63.png (x=36,y=0 by google maps)
http://tms3.visicom.ua/1.0.3/world_ua/6/36/62.png (x=36,y=1 by google maps)

http://tms3.visicom.ua/1.0.3/world_ua/ it's lang pack, available (ua-ukrainian; ru-russian; en-english)

If it's can be add - it was great! Smile
Thank you.

KKS

Cantidad de envíos : 4
Fecha de inscripción : 2011-08-31

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux on Sun Sep 04, 2011 3:54 pm

KKS wrote:
orux wrote:
Hi;

Not all operations are allowed;

I have to hardcode the operations, because there is no script support in java - android.

Which operation do you need exactly?

orux
Exactly I want do this: 2^$z-1-$y. I want to add Visicom maps, its Ukraine, Belarus and Estonian maps
http://maps.visicom.ua/

tile url is: http://tms3.visicom.ua/1.0.3/world_ua/$z/$x/((2^$z)-1-$y).png

Example url's:
http://tms3.visicom.ua/1.0.3/world_ua/6/36/63.png (x=36,y=0 by google maps)
http://tms3.visicom.ua/1.0.3/world_ua/6/36/62.png (x=36,y=1 by google maps)

http://tms3.visicom.ua/1.0.3/world_ua/ it's lang pack, available (ua-ukrainian; ru-russian; en-english)

If it's can be add - it was great! Smile
Thank you.

Hi;

This operation is ready;

<yop>0</yop>

take a look at the first post: http://oruxmaps.forumotion.com/t1113-new-versions-online-maps-management-onlinemapsourcesxml#4549

An example:

Code:

<onlinemapsource uid="21">
<name>Eniro Nautical (SE, NO, FI)</name>
<url><![CDATA[http://map.eniro.com/geowebcache/service/tms1.0.0/nautical/{$z}/{$x}/{$y}.png]]></url>
<minzoom>1</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name=""></httpparam>
<xop></xop>
<yop>0</yop>
<zop></zop>
<qop></qop>
</onlinemapsource>

orux

_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  KKS on Sun Sep 04, 2011 7:56 pm

Tnx .
Embarassed

KKS

Cantidad de envíos : 4
Fecha de inscripción : 2011-08-31

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  dzelzcels on Thu Sep 22, 2011 1:16 am

Hi everyone, I have to admit that I'm quite incompetent when it comes to IT but for the last couple of days I've been trying to add one map. It's topo map for the baltic states http://balticmaps.eu/?lang=en Can someone shed a light on how to add it to the sources? I would greatly appreciate!

dzelzcels

Cantidad de envíos : 6
Fecha de inscripción : 2011-09-22

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  KKS on Fri Sep 23, 2011 5:54 pm

dzelzcels wrote:Hi everyone, I have to admit that I'm quite incompetent when it comes to IT but for the last couple of days I've been trying to add one map. It's topo map for the baltic states http://balticmaps.eu/?lang=en Can someone shed a light on how to add it to the sources? I would greatly appreciate!
It's not basic projection. Tile's have this url: x=11, y=6, z=6 (for google projection)
http://maps.kartes.lv/kijs/server_scripts/topo/get_image.php?WIDTH=300&HEIGHT=300&KIJS=BM45&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application/vnd.ogc.se_inimage&LAYERS=&SRS=EPSG:3059&FORMAT=image/gif&TRANSPARENT=true&BBOX=535040,6336000,563200,6364160

and x+1: x=12, y=6, z=6 (for google projection)
http://maps.kartes.lv/kijs/server_scripts/topo/get_image.php?WIDTH=300&HEIGHT=300&KIJS=BM45&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application/vnd.ogc.se_inimage&LAYERS=&SRS=EPSG:3059&FORMAT=image/gif&TRANSPARENT=true&BBOX=563200,6336000,591360,6364160

so last digits maybe contain the corner of image, and for zoom=6 its 28160 wide

for x=23 y=13 z=7
http://maps.kartes.lv/kijs/server_scripts/topo/get_image.php?WIDTH=300&HEIGHT=300&KIJS=BM45&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application/vnd.ogc.se_inimage&LAYERS=&SRS=EPSG:3059&FORMAT=image/gif&TRANSPARENT=true&BBOX=549120,6336000,563200,6350080
it's halfed to 14080 . I think it's to hard to do script for orux, even without linking to region

KKS

Cantidad de envíos : 4
Fecha de inscripción : 2011-08-31

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux on Fri Sep 23, 2011 5:58 pm

KKS wrote:



Sorry, KKS;

We was writing at the same time, Smile

orux

_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  orux on Fri Sep 23, 2011 6:09 pm

dzelzcels wrote:Hi everyone, I have to admit that I'm quite incompetent when it comes to IT but for the last couple of days I've been trying to add one map. It's topo map for the baltic states http://balticmaps.eu/?lang=en Can someone shed a light on how to add it to the sources? I would greatly appreciate!

Hi;

Using Firefox + HttpFox plugin you can see the url behind the map service:

http://maps.kartes.lv/kijs/get_map.php?BBOX=788480,6082560,901120,6195200&WIDTH=300&HEIGHT=300&KIJS=BM45&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=&SRS=EPSG%3A3059&FORMAT=image%2Fgif&TRANSPARENT=true

this is a wms; with a bit of luck, it should support the format used by OruxMaps:

<wms>
<name>Baltico</name>
<uid>1309</uid><!--unique identifier in your database cache; >1000 -->
<desc>Baltico</desc>
<url><![CDATA[http://maps.kartes.lv/kijs/get_map.php?SERVICE=WMS&KIJS=BM45&]]></url>
<minzoomlevel>10</minzoomlevel><!-- 0 to 20 -->
<maxzoomlevel>16</maxzoomlevel><!-- 0 to 20 -->
<version>1.1.1</version><!-- do not change -->
<layers></layers>
<coordinatesystem>EPSG:4326</coordinatesystem><!-- do not change -->
<format>image/jpeg</format>
<cache>1</cache><!-- not in use -->
</wms>

Hmmm, seems that yes Smile

Insert that code in wms_services.xml file before </wms_services> tag.

BUT previously check the 'terms of use' of those maps; I do not want problems with map providers!

orux




_________________
Ahora puedes contribuir:--> DONACIÓN
Now you can contribute:--> DONATE
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  dzelzcels on Sat Sep 24, 2011 5:18 pm

Thanks guys,

orux, I did exactly what you said but after adding the code it doesn't show up in the map sources. Do you have any idea what I'm doing wrong? Appreciate your help!


orux wrote:
dzelzcels wrote:Hi everyone, I have to admit that I'm quite incompetent when it comes to IT but for the last couple of days I've been trying to add one map. It's topo map for the baltic states http://balticmaps.eu/?lang=en Can someone shed a light on how to add it to the sources? I would greatly appreciate!

Hi;

Using Firefox + HttpFox plugin you can see the url behind the map service:

http://maps.kartes.lv/kijs/get_map.php?BBOX=788480,6082560,901120,6195200&WIDTH=300&HEIGHT=300&KIJS=BM45&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=&SRS=EPSG%3A3059&FORMAT=image%2Fgif&TRANSPARENT=true

this is a wms; with a bit of luck, it should support the format used by OruxMaps:

<wms>
<name>Baltico</name>
<uid>1309</uid><!--unique identifier in your database cache; >1000 -->
<desc>Baltico</desc>
<url><![CDATA[http://maps.kartes.lv/kijs/get_map.php?SERVICE=WMS&KIJS=BM45&]]></url>
<minzoomlevel>10</minzoomlevel><!-- 0 to 20 -->
<maxzoomlevel>16</maxzoomlevel><!-- 0 to 20 -->
<version>1.1.1</version><!-- do not change -->
<layers></layers>
<coordinatesystem>EPSG:4326</coordinatesystem><!-- do not change -->
<format>image/jpeg</format>
<cache>1</cache><!-- not in use -->
</wms>

Hmmm, seems that yes Smile

Insert that code in wms_services.xml file before </wms_services> tag.

BUT previously check the 'terms of use' of those maps; I do not want problems with map providers!

orux




dzelzcels

Cantidad de envíos : 6
Fecha de inscripción : 2011-09-22

View user profile

Back to top Go down

New versions online maps management: onlinemapsources.xml Empty Re: New versions online maps management: onlinemapsources.xml

Post  Sponsored content


Sponsored content


Back to top Go down

Page 1 of 2 1, 2  Next

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum