[Bug]: On Initial zoom Features are not getting rendered
See original GitHub issueMapbox Implementation
Mapbox GL
Mapbox Version
default
Platform
iOS
@rnmapbox/maps
version
#main
Standalone component to reproduce
import React from 'react'
import { MapView, Camera, ShapeSource, CircleLayer, LineLayer } from '@rnmapbox/maps'
const aLine = {
type: 'LineString',
coordinates: [
[80.41956421171835, 16.29841309698017],
[80.41956421171835, 16.29835131091197],
[80.4195695761428, 16.29812476181567],
[80.41966613564813, 16.29497879163125],
[80.41966613564813, 16.294999387356782]
]
}
export class BugReportExample extends React.Component {
render() {
return (
<MapView style={{ flex: 1 }}>
<Camera centerCoordinate={[80.41956421171835, 16.29841309698017]} zoomLevel={16} />
<ShapeSource id={'idStreetLayer'} shape={aLine}>
<LineLayer
id={'idStreetLayer'}
sourceID={'ShapeSource'}
style={{ linePattern: 'https://docs.mapbox.com/mapbox-gl-js/assets/colorado_flag.png' }}></LineLayer>
{/* <CircleLayer id={'idStreetCircleLayer'} /> */}
</ShapeSource>
</MapView>
)
}
}
Observed behavior and steps to reproduce
- On Initial Zoom Level at which mapbox loads the map. Features of shape source with line-layer that has linePattern not getting rendered Once if we ZoomIn and ZoomOut again they are getting rendered and able to see on map
Too re-produce this issue try to load any linePattern to Initial Camera Centre coordinate’s
Expected behavior
- Shape-source with LineLayer of linePattern images should be rendered upon map is loaded
Note : I see issue is in both Implementation mapbox and mapbox-gl
Notes / preliminary analysis
- rendering issue on initial load
- I see issue is in both Implementation mapbox and mapbox-gl
Additional links and references
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top Results From Across the Web
WindowsSDK normal video render bug with many users
We receive a “Video_ON” video status event from the SDK for the videos that did not initially render; We are now able to...
Read more >Fix bug preventing "queryRenderedFeatures" from returning ...
There are occasions where the marker will not be returned while zooming in and out. It is like at some stages the marker...
Read more >Chrome bug when rendering table with zoom - Stack Overflow
Now zoom to 110%, 125% or anything similar. Check again the width of any "td" element, and find that it is not 25px,...
Read more >Zoom Bug - Zoom Community
A raised hand is a feature that participants can use during the meeting, ... Those who raise their hands first will be displayed...
Read more >Zoom constantly resetting to 100% even with 125% set as ...
What is the expected behavior? Page should render and stay in default zoom level set in settings. What went wrong? Page loads in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, please don’t spam everyone.
Can you share a true standalone component, rather than part of one?
If you’re in a hurry, you can also investigate yourself. I would suggest first finding the most minimal version of this you can - does the bug still happen with a solid line? Is it the same with a different feature like a CircleLayer?
The more specific the report, the more likely somebody will look into this.
@sarath40158 please stop spamming everybody. You can try to investigate yourself and fix it. Otherwise be patient until somebody else picks up on the issue. As I see you already figured, this might be a upstream problem https://github.com/mapbox/mapbox-maps-ios/issues/1436. I can only reproduce with
linePattern
.lineColor
works fine.