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.

ImageArcGIS Layer misaligned

See original GitHub issue

Hi Folks,

I’m building a Webapp where I need to project a ImageArcGIS Layer on top of a regular map. Until today, I’m not able to reproduce this bug on my machine (Macbook Air 13" 2015). The displayed ImageArcGIS Layer is being projected nowhere near it should be. At first, I thought the bug exists only on Chromium-based browsers, but recently I got notices that it also happens on Firefox.

This is on Firefox grafik

This is on Chrome grafik

Weirdly, when used with Chromium installed on the same machine, the ArcGIS layer is projected as it should be, like this (Mozilla Firefox on my Machine): grafik

My code to instantiate the ImageArcGIS Layer: overlayLayer = new ImageLayer({ source: new ImageArcGISRest({ url: layer.URL, params: layer.Parameters, crossOrigin: "anonymous" }), opacity: layer.Opacity, visible: true })

It happens to all my inserted ArcGIS Layer, regardless of the service URL.

Steps to reproduce the behavior:

Until today I couldn’t reproduce it. Either it’s there, or not.

Expected behavior The ArcGIS layer should be where it’s supposed to be projected.

Thanks in advance,

Tomás

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aolagerscommented, May 15, 2020

I noticed the same problem with ol v6.3.1 on Firefox 76.0.1. For me it happens on a VectorLayer, so it does not seem to be specific to ArcGIS layers.

When I check the element with devtools, the canvas element for the layer has its style set to: "position: absolute; left: 0px; transform-origin: left top 0px; transform: matrix(0.8, 0, 0, 0.8, 0, 0);"

The transform matrix scales the layer down to 80% which causes the layer to be misaligned with the basemap.

Does not happen on Chrome 81.0.4044.

1reaction
JamesxuWangcommented, Mar 13, 2020

i got this problom too. if i use chrome devtool , toggle device toolbar and set the resolution to 3784*1400, the img is not in the right position!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ArcGIS Pro and ArcMap Alignment Issues - Esri Community
ArcGIS Pro and ArcMap Alignment Issues · Go to the View menu > Data Frame Properties > Coordinate System and change the coordinate...
Read more >
Feature service misalignment in ArcGIS Online
When I use the Collector app and download the map for offline use, they get aligned properly and there is nothing missing. On...
Read more >
Georeferencing-Image alignment in ArcGIS
You can align, or georeference, scanned maps to existing GIS data so that you can digitize information from them or use them as...
Read more >
GDA2020, ArcGIS Online and the Web Mercator Dilemma
The following layer types are supported for custom basemaps: imagery, map image, tile, vector tile, WMS OGC, WMTS OGC, Bing, and OpenStreetMap.
Read more >
Dealing with an Incorrectly Defined Coordinate System in ...
This tutorial will show you how to go about determining the correct coordinate system in ArcGIS Pro. … Show more. Show more ...
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