Geoportail-Luxembourg / geoportailv3

geoportailv3 is the implementation of the v3 of the map viewer of the luxembourgish geoportal
MIT License
26 stars 16 forks source link

Possibilty to use a MyMap with "fit: false" #3051

Closed PitWenkin closed 1 year ago

PitWenkin commented 1 year ago

Is there a way to include the fit: false option in addMyMapLayer ?

It exists for addGeoJSON, addGeoJsonObject, addGPX, and addKML and at least for addKML it seems to work as described.

rmichaelis commented 1 year ago

This parameter already exists with the name : fitToExtent example : map18.addMyMapLayer({ mapId: '0416ef680fbe4cdaa2d8009262d1127c', fitToExtent: false });

PitWenkin commented 1 year ago

I did not find any documentation for addMyMapLayer, is there one anywhere?

Most links on https://apiv4.geoportail.lu/ and https://apiv3.geoportail.lu/ are dead …

rmichaelis commented 1 year ago

Documentation about addMyMapLayer is available here : https://apiv3.geoportail.lu/proj/1.0/build/apidoc/lux.Map.html#addMyMapLayer and here : https://apiv4.geoportail.lu/proj/1.0/build/apidoc/module-map-Map.html#addMyMapLayer

PitWenkin commented 1 year ago

Sorry is was blind in the apiv3 docu, but in the apiv4 there are no properties under options

rmichaelis commented 1 year ago

Thanks. The documentation is now ok for v4.