Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

widoki360pl

Anfänger

  • »widoki360pl« ist der Autor dieses Themas

Beiträge: 3

Wohnort: Gdansk, Poland

Beruf: One-band man

  • Nachricht senden

1

Dienstag, 20. September 2016, 14:05

Customizing Google Maps appearance in plugin

Hello,

it's my first post here, so I would like to say "Hello" at start. I'm just starting with krpano, so please excuse me my ignorant questions, just in case of any :) I use Google Maps both as a standalone map and also inside krpano plugin. I would like to keep all the maps uniform in term of appearance - in my particular case I need to display all maps monochrome. This is easy and obvious with Google Maps API just by defining own styles during map initialization:

Quellcode

1
2
3
4
map = new google.maps.Map(document.getElementById('views-map'),	{
  center: {lat: 0, lng: 0},
  zoom: 8,
  styles: [ { "stylers": [ { "saturation": -100 } ] } ]});


But I don't know how to customize map style inside krpano map plugin. Is there any possibility to define custom styles JSON in plugin?
Best regards,
Sebastian

https://www.widoki360.pl

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »widoki360pl« (10. Januar 2017, 09:21)


2

Donnerstag, 22. September 2016, 08:38

Same question - did some diggin and need help

Hi to all.

I also just started out with krpano and I've stumbled on an interesting problem I need help with - if anybody could help - access to source code would also be OK :)

My problem is that I would like to access the instance of the Map object that gets created with the Google Maps Plugin. I want to add additional info to the spots on the map ( more exactly I would like to add the Google Maps InfoWindow to the spot so I can add additional content to the pop-up), with a InfoWindow.

I tried showtext.xml but it doesn't serve the purpose I need ( I want to dynammically add images, text and links ).

And just to add since the plugin uses a static googlemaps.js file I would like to propose the Plugin has the abbility to get the data from the Google Maps JavaScript API directly and that an ID can be given for the map wrapper and access to the Google Maps Instance Object.

I hope I'm not asking too much but the Plugin as it is now it's a bit limited.

Regards,

Nejc Vukovic

Ähnliche Themen