Google Maps API and Google Indoor Maps

2

Good afternoon. I work with Network Design and Structured Cabling and developed an application for the mapping of optical fiber with the Google Maps API, which you can see at the following URL:

link

In brainstorming with the team, everyone found it interesting to add the company's plans for adding structured cabling to the buildings, so we would have the structures of each University building. In search of solutions, we discovered this:

link

Doubt would not be specific either, but whether it is possible to apply Indoor Maps directly to our mapping, without having to send the floor plans to Google (which can be barred by public sector bureaucracy).

If it is possible, where can I find some documentation about it? I joined the Google discussion forums to ask this question and they sent me to Stack Overflow in English.

Thank you.

    
asked by anonymous 13.04.2015 / 22:02

2 answers

2

Indoor Maps is not yet available for the Google Maps API v3 but there is a solution that can meet your needs. The GroundOverlay class, Solo Overlays in our Portuguese, allows you to place an image in a certain location, increasing or decreasing in size depending on the zoom level. Documentation can be found here: link

But basically you just need to set the NE and SW points of the floor plan:

var imageBounds = new google.maps.LatLngBounds(
    new google.maps.LatLng(40.716216,-74.213393),
    new google.maps.LatLng(40.765641,-74.139235)); 

Then you define the path of the image and the previously defined NE and SW coordinates and place the overlay on the map:

   var oldmap = new google.maps.GroundOverlay("http://pathdaimagem.jpg", imageBounds);
   oldmap.setMap(map);

To complete you can create custom map controls that show or hide floor plans.

    
14.04.2015 / 12:17
0

Paulo Blz ??

Following this site link explains how you do it to create a Indoor Map

I hope I have helped!

    
17.04.2015 / 16:38