Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use the Google Maps API to display a custom map?

Tags:

google-maps

And by custom map I mean custom map tiles, as in, mapping another planet. I've looked all around but can't see to find any resources pointing how to do this on Google's or any website.

I know it's possible because I've seen it done before on a website, but unfortunately the website that has the link to THAT site is down so I can't get to it.

like image 659
Jake Petroules Avatar asked Jun 20 '10 15:06

Jake Petroules


People also ask

How do I view custom Google Maps?

Step 1: Slide-out the left-hand menu, then choose Your Places. Step 2: Scroll down past your Saved places (those you have starred but not added to a map) and you will see the names of your custom maps. Step 3: Choose the map you want to work with and then it will load on the main view.

What can you do with Google Maps API?

The Google Maps Platform is a set of APIs and SDKs that allows developers to embed Google Maps into mobile apps and web pages, or to retrieve data from Google Maps.

Can you customize Google Maps API?

The Google Maps APIs now support you in creating beautiful styled maps for your Android and iOS apps as well as your website using the same JSON style object.


1 Answers

Have a look at the API. This might help you by loading own images as an overlay:

Image Map Types

Implementing a MapType to act as a base map type can be a time-consuming and laborious >task. The API provides a special class that implements the MapType interface for the most >common map types: map types that consist of tiles made up of single image files.

This class, the ImageMapType class, is constructed using an ImageMapTypeOptions object specification defining the following required properties:

  • tileSize (required) specifies the size of the tile (of type google.maps.Size). >Sizes must be rectangular though they need not be square.
  • getTileUrl (required) specifies the function, usually provided as an inline >function literal, to handle selection of the proper image tile based on supplied world >coordinates and zoom level.
like image 193
b_erb Avatar answered Oct 15 '22 21:10

b_erb