Hi Moe,
Paul suggestion is the correct one for adjusting the starting
location. You can also set the openmap.Scale and openmap.Projection
values to adjust the other projection parameters.
If you are using the GoToMenu in the properties file, you can set pre-
defined areas. An example:
gotoMenu.class=com.bbn.openmap.gui.GoToMenu
gotoMenu.addDefaults=true
goto.views=Argentina India Massachusetts United_States Caspian_Sea
Russia
Russia.latitude=40.20
Russia.longitude=46.500
Russia.name=Russia
Russia.projection=Mercator
Russia.scale=5.0E7
Argentina.latitude=-39.760445
Argentina.longitude=-65.92294
Argentina.name=Argentina
Argentina.projection=Mercator
Argentina.scale=5.0E7
...
Also, if your Layer/object implements the DataBoundsProvider
interface, The GoToMenu will ask it for a DataBounds to use to add to
its menu for predefined view based on a dataset.
Hope this helps,
Don
On Oct 20, 2009, at 1:29 AM, PaweĆ SkarĆŒyĆski wrote:
> Hi Moe,
>
> The starting projection is in the openmap properties file:
> # MAP STARTUP PROJECTION PARAMETERS
> # Latitude and longitude in decimal degrees
> openmap.Latitude=20f
> openmap.Longitude=-20f
>
> Paul S.
>
>
> 2009/10/19 Moe Zakeri <mzakeri_at_ironhawk.com>
> Is there any way to zoom at a city/location based on the settings,
> so when I run the OpenMap it is zoomed to that location like a GPS?
>
>
> Thanks,
>
> Moe
>
>
>
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Oct 20 2009 - 11:25:42 EDT