[mapserver-users] Mapserver as back-end for Google custom streetview?

Jan Martin janmartin at diy-streetview.org
Fri Mar 18 07:48:05 PDT 2011


Way simpler:

I took about 200 panoramas, geotagged them and display them using Google
custom streetview API, which is part of Google maps API v3:

http://code.google.com/apis/maps/documentation/javascript/services.html#CustomStreetView

For this I created 2 sets of data:
a) Polyline for the "blue roads" on the map:

var points =
[
new google.maps.LatLng(49.994581,8.664265),
new google.maps.LatLng(49.994636,8.666582),
etc...
];

b) List of my custom streetviews:
var panoramas =  {
  '000038': {
    latLng: new google.maps.LatLng(49.99434383656390, 8.66439325015278),
    description: '000038',
    pano: '000038',
    copyright: 'Imagery (c) 2011 DIY-streetview.com',
    tiles: {
      worldSize: new google.maps.Size(8192, 4096),
      tileSize:  new google.maps.Size(512, 512),
      heading: 339
    },
    links: [
      {
      heading: 159,
      description: '000037',
      pano: '000037',
      roadColor: '#C9BE62',
      roadOpacity: '0.3'
      },
      {
      heading: 339,
      description: '000039',
      pano: '000039',
      roadColor: '#C9BE62',
      roadOpacity: '0.3'
      }]},
etc....

Obviously this does not scale.
So I like to serve this data only using Mapserver.
Tiles are from Google.

How to do this?

Thanks,
Jan

My working example:
http://www.diy-streetview.org/2011/03/17/google-streetview-player-for-diy-streetviews/



On Fri, Mar 18, 2011 at 3:31 PM, Mark Korver <mwkorver at gmail.com> wrote:

> if you purpose is to replace the google base layer with something
> different this might help
>
>
> http://wiki.openstreetmap.org/wiki/Google_Maps_Example#Example_Using_Google_Maps_API_V3
>
> that allows you to use OSM as basemap.
>
> To use MapServer behind this rather than just getting from OSM, or
> CloudMade etc, you need to be able to serve Tiles from MapServer.
>
> see here for how to do that
>
> http://mapserver.org/output/tile_mode.html
>
> The references here are for GMap v2 so you will have to adapt the
> examples abit to work with GMap V3
>
>
> On Fri, Mar 18, 2011 at 7:22 AM, Jan Martin
> <janmartin at diy-streetview.org> wrote:
> > Hi all,
> >
> > I just published 200 panoramas I shot myself using the latest Google
> custom
> > streetview API v3:
> >
> >
> http://www.diy-streetview.org/2011/03/17/google-streetview-player-for-diy-streetviews/
> >
> > For this i added an overview map using div's.
> >
> > My camera used to shoot the 200 streetviews while walking, without even
> > stopping, in just 20 minutes:
> > http://www.diy-streetview.com
> >
> > I am looking for help to implement a back-end using http://mapserver.org
> .
> > Any sugestions how to do this?
> >
> > Thanks,
> > Jan Martin
> > janmartin AT diy-streetview DOT org
> >
> > P.S.:
> > Google custom streetview API:
> >
> http://code.google.com/apis/maps/documentation/javascript/services.html#CustomStreetView
> >
> > --
> > http://www.DIY-streetview.org
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
>



-- 
http://www.DIY-streetview.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110318/8369a334/attachment.htm>


More information about the MapServer-users mailing list