amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Can we customize google map in amp.

Open gskaushal92 opened this issue 5 years ago • 2 comments

Description

I have following requirement:

  1. I want to load google map inside amp page.
  2. On page load I will query json data and get multiple dynamic marker location.
  3. I want to pin these marker to there location.
  4. I want to draw a custom radius of xKM around my markers.
  5. I want to add custom resize functionality for the circle.
  6. Then on some user action, update the markers.
  7. Drag and drop circle to any location and pin marker inside the circle. Similarly I have few more use cases, But I want to know, if and all these implementations are achievable using amp?

Reproduction Steps

I have following requirement:

  1. I want to load google map inside amp page.
  2. On page load I will query json data and get multiple dynamic marker location.
  3. I want to pin these marker to there location.
  4. I want to draw a custom radius of xKM around my markers.
  5. I want to add custom resize functionality for the circle.
  6. Then on some user action, update the markers.
  7. Drag and drop circle to any location and pin marker inside the circle. Similarly I have few more use cases, But I want to know, if and all these implementations are achievable using amp?

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

gskaushal92 avatar Aug 04 '21 09:08 gskaushal92

If possible, you should render the widget inside an amp-iframe. Inside the loaded document, you can do whatever you want without using AMP, including loading the Google Maps JS API.

alanorozco avatar Aug 06 '21 00:08 alanorozco

ok. Thanks.

gskaushal92 avatar Aug 31 '21 10:08 gskaushal92