angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Add `mapId` map init option to `agm-map` directive

Open shaji-Dev opened this issue 3 years ago • 11 comments

Not all google.maps.Map options are included in the directive, it is missing a very important feature which is the mapId and this is different than the mapTypeId, it allows us to use the Google Maps API styling and Vector maps for the recently introduced WebGL features:

  • https://developers.google.com/maps/documentation/javascript/styling
  • https://issuetracker.google.com/issues/35821626

This is very important for our project and we would very much appreciate the inclusion of mapId in the <agm-map> component, because mapId can only be set for the map options when initializing google.maps.Map(element, options) as the setOptions({ mapId: "..."}) has no effect later as the documentation mentions,

Thank you.

shaji-Dev avatar May 27 '21 15:05 shaji-Dev

This is really important and good thing For some reason this PR was canceled https://github.com/SebastianM/angular-google-maps/pull/1888

It doesn't seem to be a lot of effort to add this feature

egarkavy avatar Jun 22 '21 16:06 egarkavy

@SebastianM Any news on the next update? Thank you.

shaji-Dev avatar Jul 23 '21 22:07 shaji-Dev

This would be really helpful to have in there so we can control what style of map Google serves up on the GCP console.

xwing23 avatar Aug 23 '21 15:08 xwing23

I would also like to use this feature and considering the cancelled PR #1888 , it doesn't look complicated to set up. But considering the history of the project, the absence of updates for 5 months, @SebastianM Is the project still being maintained?

julienM77 avatar Sep 20 '21 14:09 julienM77

I am also trying to figure out how can I use mapID & webGLOverlay with AGM, unfortunately cannot find any way.

AyalaBarzilay avatar Sep 23 '21 15:09 AyalaBarzilay

hello everyone, is there any way to set the mapId manually by modifying the agm source code? the code that is the folder node_modules/@agm/core in the node

andres-osorio avatar Sep 29 '21 03:09 andres-osorio

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 03:01 stale[bot]

do something about it please

andres-osorio avatar Jan 10 '22 15:01 andres-osorio

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 06:04 stale[bot]

I'd also like to see this

MarkGrenville avatar Apr 21 '22 22:04 MarkGrenville

If it helps, I ended up migrating my project to angular 13 and using the "official" google map component, my transition didn't require much modification https://github.com/angular/components/tree/master/src/google-maps#readme

julienM77 avatar Apr 22 '22 08:04 julienM77