Skip to main content

Again on free map providers for JXMapViewer - I hate to say this...

2 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fabrizio Giudici

On Jan 29, 2007, at 22:41 , Fabrizio Giudici wrote:

>
> Yes. My point is that at least there are not legal issues here: one
> thing is a broken URL that can be fixed, another is having an
> attorney out of the door :-) I understand that it can't be a
> default provider, but this could be ok for people (like me :-) that
> has an urgent need to replace Google Maps, waiting for something
> more viable in future.

Ok, it actually took just a few minutes to write the code thanks to
the linked article. I correctly see the VE map and I can zoom in and
out with no problems. The only issue is that geotags are placed with
a huge offset (e.g. geotags from southern France are placed just
north of the Anctarctica :-) I suppose it's just a matter of offsets.
Is getMapCenterInPixelsAtZoom(int zoom) the method where I should
work to fix it?

--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

Joshua Marinacci

That's probably the right place, but really you should be working off
the new_tile_provider branch. I have refactored the TileFactory to
have fewer methods and fixed a bunch of bugs. If france is near
antarctica then that probably means their tiles have y=0 at the
equator instead of y=0 at the top of the map. I believe there is a
boolean you can pass into the TileFactoryInfo to control that.

- J

On Jan 29, 2007, at 2:43 PM, Fabrizio Giudici wrote:

>
> On Jan 29, 2007, at 22:41 , Fabrizio Giudici wrote:
>
>>
>> Yes. My point is that at least there are not legal issues here:
>> one thing is a broken URL that can be fixed, another is having an
>> attorney out of the door :-) I understand that it can't be a
>> default provider, but this could be ok for people (like me :-)
>> that has an urgent need to replace Google Maps, waiting for
>> something more viable in future.
>
> Ok, it actually took just a few minutes to write the code thanks to
> the linked article. I correctly see the VE map and I can zoom in
> and out with no problems. The only issue is that geotags are placed
> with a huge offset (e.g. geotags from southern France are placed
> just north of the Anctarctica :-) I suppose it's just a matter of
> offsets. Is getMapCenterInPixelsAtZoom(int zoom) the method where I
> should work to fix it?
>
> --
> Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
> Tidalwave s.a.s. - "We make Java work. Everywhere."
> weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
> Fabrizio.Giudici@tidalwave.it - mobile: +39 348.150.6941
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
> For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

- Blasting forth in three part harmony!

[att1.html]