Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Infospot custom icon not working in latest IOS 16.4.1 #426

Closed
habeebmaraikar opened this issue May 10, 2023 · 3 comments
Closed

Infospot custom icon not working in latest IOS 16.4.1 #426

habeebmaraikar opened this issue May 10, 2023 · 3 comments

Comments

@habeebmaraikar
Copy link

habeebmaraikar commented May 10, 2023

Hi,
PanolensJs library was working well all these years.

All of a sudden, only in the latest IOS 16.4.1, the infospot icon is showing black box in both safari and chrome. But working fine in IOS 16 or less. Working in android too.

@habeebmaraikar
Copy link
Author

@pchen66 @emibap @flyandi @naranjamecanica please help to look into the issue.

@habeebmaraikar
Copy link
Author

habeebmaraikar commented May 11, 2023

https://codepen.io/pchen66/pen/dRYNNG

This example itself not working in IOS 16.4.1 , showing black box for infospot.

image

@habeebmaraikar
Copy link
Author

custom hotspot added to PANOLENS.DataImage object dynamically
and now the hotspot image size change to 64x64 and convert to data uri format

import hotspot from "../images/hotspots/hotspot.png"; /* 64x64 size */
const obj = PANOLENS.DataImage;
//customHotspot
obj['Hotspot'] = hotspot;

//use infospot as below
var infospot1 = new PANOLENS.Infospot( baseScale, PANOLENS.DataImage.Hotspot );

now all working good for me in mobile and desktop.

Mian issue is keep the infspost custom image size as 64x64

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant