# Geolocation: Better to just go with Googlemaps?

**URL:** <https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822>\
**Category:** flash\
**Created:** [June 10, 2008, 9:45am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822 "2008-06-10T09:45:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seanlail](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Seanlail](https://forum.kirupa.com/u/Seanlail)\
**Post date:** [June 10, 2008, 9:45am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/1 "2008-06-10T09:45:30Z")

</div>

Hi all,

I’m working on a map locator for a client at the moment.

It’s basically a world map and wherever the users clicks, it would zoom in and show the cities around it.

The client specifically said he did not want the Google maps look as the “full on” maps with roads, etc is too much overkill for what he wants.

Just needs the continents showing and the borders of each country.  
Then when the cities load in, just a “dot” or icon to show it (with some text)

I’ve got the data of all the countries (with their ISO, Longitude and Latitude) but am finding now after I’ve researched more that it’s not as easy as just saying “mouse is at X, Y… so Longtitude/Latitude would be XX, YY”.

I’ve only played around a little bit with the new Google Maps API in Flex recently so I’m not sure of how much you can customise the UI.

So, here’s my question:

Can I use Google Maps and have my own flash vector map of the world over the usual bitmap map and then just have the cities / border graphics above that?

That was a bit of a long winded post but I’m sure you have all the info about my problem now.

Cheers

Sean

---

<div class="post-metadata">

**Author:** ![Fidodo](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fidodo](https://forum.kirupa.com/u/Fidodo)\
**Post date:** [June 10, 2008, 10:37am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/2 "2008-06-10T10:37:25Z")

</div>

I know I’ve seen overlays on google maps, but that was actually using google maps and loading an image over it. I would think you could customize it to not show roads and labels though.

---

<div class="post-metadata">

**Author:** ![Seanlail](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Seanlail](https://forum.kirupa.com/u/Seanlail)\
**Post date:** [June 10, 2008, 10:41am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/3 "2008-06-10T10:41:19Z")

</div>

Hi Fidido, thanks for the reply.

Yeah, I would not need the roads to be shown, but would need the city names / labels.

The most important thing is to be able to placer vector graphics between the road / labels layers and the actual map graphics below.

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 10, 2008, 8:20pm UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/4 "2008-06-10T20:20:53Z")

</div>

Google just released the flash google maps api, check it out. Instead of using javascript, google maps goes straight into your flash.

> **[Google Maps JavaScript API  |  Google Developers](https://developers.google.com/maps/documentation/javascript/?csw=1)**
>
> Build a custom map for your site using styled maps, 3D buildings, indoor floor plans, multi-modal directions and more with the Google Maps JavaScript API.

I have never used it, but I’m pretty sure you must be able to create your own vector layers over their maps.

---

<div class="post-metadata">

**Author:** ![Stratification](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@Stratification](https://forum.kirupa.com/u/Stratification)\
**Post date:** [June 10, 2008, 10:45pm UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/5 "2008-06-10T22:45:15Z")

</div>

You might want to look at Yahoo’s maps too. Not sure if they’d fit exactly, but they’ve been supporting Flash/ActionScript much longer.

---

<div class="post-metadata">

**Author:** ![Fidodo](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fidodo](https://forum.kirupa.com/u/Fidodo)\
**Post date:** [June 10, 2008, 10:45pm UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/6 "2008-06-10T22:45:47Z")

</div>

I think he’s already using that.

So I’m not familiar with the api but skimming through it

> **[Google Maps JavaScript API  |  Google Developers](https://developers.google.com/maps/documentation/javascript/?csw=1)**
>
> Build a custom map for your site using styled maps, 3D buildings, indoor floor plans, multi-modal directions and more with the Google Maps JavaScript API.

  
You want to use the overlay package.

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 11, 2008, 12:35am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/7 "2008-06-11T00:35:28Z")

</div>

[QUOTE=Fidodo;2340376]I think he’s already using that.

So I’m not familiar with the api but skimming through it

> **[Google Maps JavaScript API  |  Google Developers](https://developers.google.com/maps/documentation/javascript/?csw=1)**
>
> Build a custom map for your site using styled maps, 3D buildings, indoor floor plans, multi-modal directions and more with the Google Maps JavaScript API.

  
You want to use the overlay package.[/QUOTE]

You’re right…

Sometimes I read too fast 🙂

---

<div class="post-metadata">

**Author:** ![Seanlail](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Seanlail](https://forum.kirupa.com/u/Seanlail)\
**Post date:** [June 11, 2008, 1:59am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/8 "2008-06-11T01:59:16Z")

</div>

Yeah, definitely using the flash API.  
It’s new, so I guess everyone’s still learning it anyway.

Cheers, Fidodo. Yes, the overlay is what I’m looking in to at the moment.

I looked at the examples they have and these 2 are on the right track:

[http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/GroundOverlaySimple.html](http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/GroundOverlaySimple.html)

[http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/CustomMapCampus.html](http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/CustomMapCampus.html)

I’m just trying to figure out if I can load a large world map as a vector in my Flex app instead of having it load in tiles of bitmap data.

I posted a message on the Google Maps Flash API group, so hopefully I will get some responses as well. Will update here if I find out anything more.

---

<div class="post-metadata">

**Author:** ![Seanlail](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Seanlail](https://forum.kirupa.com/u/Seanlail)\
**Post date:** [June 11, 2008, 2:00am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/9 "2008-06-11T02:00:46Z")

</div>

Stratification, thanks.  
I forgot about the Yahoo one.  
True, it has been out for a while, I’ll look in to using that as well.

---

<div class="post-metadata">

**Author:** ![Fidodo](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fidodo](https://forum.kirupa.com/u/Fidodo)\
**Post date:** [June 11, 2008, 2:58am UTC](https://forum.kirupa.com/t/geolocation-better-to-just-go-with-googlemaps/262822/10 "2008-06-11T02:58:10Z")

</div>

Well doing a vector object should be just as easy as a bitmap. The GroundOverlay class takes a DisplayObject parameter for contents so you can give it any DisplayObject, including vector images just fine.
