[Gvsig_english] gvsig mini set start position

Alberto Romeu aromeu at prodevelop.es
Tue Mar 15 16:57:54 CET 2011


El 15/03/11 12:52, cobert gael escribió:
> ok for
>
> /sdcard/gvSIG/config/mapstate.txt
>
> but i am a developper and i want to fix this settings in the android
> program
>
> thanks
>
> On 03/14/2011 01:17 PM, Alberto Romeu wrote:
>> El 11/03/11 18:22, noog escribió:
>>
>>> hello
>>> i try to use gvsig mini for android, i can change or add a wms server but i
>>> can't find where i can set the position in the map when the program is
>>> launched the map seem to be in center of the whole world. what is the java
>>> file name i must change ?
>>> thanks
>>>
>>> --
>>> View this message in context: http://osgeo-org.1803224.n2.nabble.com/gvsig-mini-set-start-position-tp6162196p6162196.html
>>> Sent from the gvSIG users mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Gvsig_internacional mailing list
>>> Gvsig_internacional at listserv.gva.es
>>> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>>>
>> Hi,
>>
>> gvSIG Mini should automatically save the state every time the Map
>> activity is closed.
>>
>> You can take a look to /sdcard/gvSIG/config/mapstate.txt, this is an
>> example.
>>
>> zoom=16
>> layer=OPEN STREET MAP
>> x=-41696.39892799572
>> y=4790299.007812984
>>
>> You can modify it to load your own layer, zoom and center x, y.
>>
>> Regards
>>
>>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
Hi,

then take a look to the method load() in the class MapState, there, the 
app reads the mapstate.txt and loads the layer. You can force to load 
your own layer programatically.

Hope it helps.

-- 

Alberto Romeu
---

Prodevelop SL, Valencia (España)
Tlf.: 96.351.06.12 -- Fax: 96.351.09.68
http://www.prodevelop.es
---



More information about the Gvsig_internacional mailing list