Re: [OpenMap Users] Google Maps API factory?

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Mon, 19 Aug 2013 17:05:09 -0400

The StandardMapTileFactory ignores property settings for rootDir if it's already been set. setProperties() is always called after constructors.

I wish I had written a comment for why I made it that way, it's unusual. I think it has something to do with how the factory kind of reconfigures the rootDir if tiles are being read from a jar file.

-Don

On Aug 19, 2013, at 4:54 PM, Gary Briggs wrote:

> This seems to work pretty well, at first glance [haven't really pushed
> it yet]
>
> I tried altering the rootDir setting, but it didn't seem to be honored;
> it's set in the constructor for GoogleMapTileFactory, which I'm presuming
> overrides the property that was read from the .properties file during
> construction of the MapTileLayer before it?
>
> Thanks,
> Gary
>
> On Mon, Aug 19, 2013 at 01:03:31AM -0400, Don Dietrick wrote:
>> Hi Gary,
>>
>> I just checked in a GoogleMapTileFactory that will display google maps in OpenMap using the MapTileLayer. It uses the Google static maps API, and is in the com.bbn.openmap.dataAccess.mapTile package.
>>
>> You can set your API key from Google to set on the layer. If you don't set the key for the factory, you will not be allowed to make many image retrievals from Google's server. You need to be aware that even with the key, there are usage limits for downloading images, and a whole usage charge pricing structure in place.
>>
>> Hope this helps,
>>
>> Don
>>
>> On Aug 16, 2013, at 2:26 PM, Gary Briggs wrote:
>>
>>> Morning,
>>>
>>> I'm working on a project using openmap, and I've finally reached the
>>> point where I think I need to use google maps for tiles. I've had no
>>> problem getting ServerMapTileFactory working with OSM and MapQuest, but
>>> I'm finally at the point where I need to make it work with google's API.
>>>
>>> Does anyone have an example implemented of it actually
>>> working? Google don't seem to offer tiles in the normal
>>> zoom/x/y format that ServerMapTileFactory appears to understand:
>>> https://developers.google.com/maps/documentation/staticmaps/index
>>>
>>> If anyone has made this work, I'd greatly appreciate hearing about it
>>>
>>> Thanks,
>>> Gary
>>>
>>> --
>>> [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"]
>
> --

--
[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 Mon Aug 19 2013 - 17:05:36 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT