question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gmap: Attributes 'streetView' and 'navigationControl' not working

See original GitHub issue

Describe the bug

I am using p:gmap and am trying to use the attributes streetView and navigationControl but neither of them seem to work.

Reproducer

reproducer.zip

PrimeFaces version

10.0.0

Theme

Diamond

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jepsarcommented, Jul 11, 2022

Sorry, but the two links you provided didn’t help me.

They contain links to setting up your API key. Please use them to verify if streetview is enabled in your API key.

The street view seems to work but when I set streetView=false, it is still visible and usable. Your showcase is not helpful as I can only see this

The attribute navigationControl does not work at all and there is no showcase to test it.

An API key where this paid service is enabled is required. That’s not the case on the showcase. That’s why I labeled this issue “documentation”. There should be a huge warning on the showcase about the API key IMO.

1reaction
jepsarcommented, Jul 6, 2022

I can have a look, but my first guess is that these are now paid features which should be enabled in the Google Maps API.

@miedrl can you please check if your API key is allowed to use the features?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zoom control and streetview not showing on my Google map?
Show activity on this post. I'm inserting a very basic Google map into my page and the zoom control and streetmap icon are...
Read more >
Maps JavaScript API Release Notes - Google Developers
Fixed a bug where the fullscreen control did not work properly when switching between the Map and Street View in some situations.
Read more >
primefaces/gmap.md at master - GitHub
Controls on map can be customized via attributes like navigationControl and mapTypeControl. Alternatively setting disableDefaultUI to true will remove all ...
Read more >
Troubleshoot Street View publishing issues - Google Maps Help
Here are a few common error messages you may encounter when you publish street-level collections and the steps you can take to resolve...
Read more >
Getting started — gmaps 0.8.3-dev documentation
If you do not set the map zoom and center, the viewport will automatically focus on the data as you add it to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found