IDEA
|
I'm working on a PWA with Web assembly that requires our server to be in a Cross Origin Isolated state. This is relatively new in the Web world. It means our server must supply the COOP and COEP headers in our responses to the client. The COEP header must have the value of require-corp. This unlocks API's like SharedArrayBuffers, which is a requirement for my application. Since Arcgis's CDN does not provide the CORP header, external cross origin assets can not be loaded. I have been able to host the API on our server, but the Base Map Gallery tries to download thumbnails from an external CDN which fail. Here is a document explaining what COOP and COEP mean and why developers need this support. https://docs.google.com/document/d/1zDlfvfTJ_9e8Jdc8ehuV4zMEu9ySMCiTGMS9y0GU92k/edit# It would be nice if the Arcgis CDN supported this header for developers who work in a Cross Origin Isolated page.
... View more
11-24-2021
02:14 PM
|
1
|
1
|
824
|
POST
|
I recently asked a question in the ARCGIS JS api forum. I didn't receive any answer. It's probably because the question really has nothing to do with the JS api per se, but with the CDN in which content is supplied. I'm working on a PWA with Web assembly that requires our server to be in a Cross Origin Isolated state. This is relatively new in the Web world. It means our server must supply the COOP and COEP headers in our responses to the client. The COEP header must have the value of require-corp. This unlocks API's like SharedArrayBuffers, which is a requirement for my application. Since the CDN does not provide the CORP header, external cross origin assets can not be loaded. I have been able to host the API on our server, but the Base Map Gallery tries to download thumbnails from an external CDN which fail. Is there anywhere to log a bug or a feature request specifically for the CDN?
... View more
11-24-2021
08:47 AM
|
0
|
2
|
821
|
POST
|
I'm working on a PWA with Webassembly. I am having to have the server work in a cross origin isolated state. I am getting the following errors. js.arcgis.com/4.21/esri/themes/base/images/basemap-toggle-64.svg:1 GET https://js.arcgis.com/4.21/esri/themes/base/images/basemap-toggle-64.svg net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200 Does the server js.arcgis.com support the COOP and COEP headers?
... View more
10-12-2021
08:54 AM
|
0
|
0
|
503
|
POST
|
Sorry for taking a while to respond, but I had a mistake in my code. Thanks.
... View more
01-17-2018
02:41 PM
|
0
|
0
|
667
|
POST
|
Eric, Yes the openSSl libs are in the correct path. Without them there are all types of qDebug messages in the console window. Jon
... View more
11-28-2017
02:59 PM
|
0
|
0
|
881
|
POST
|
I followed your attached example and made the changes to work with a QGraphicsWidget; however, all i see is a grey background with the esri logo on the bottom right. I don't see any tiles. Have I missed anything? MyGraphicsObject::MyGraphicsObject(QGraphicsItem *parent)
: QGraphicsWidget(parent)
, MapView(1024,768)
{
Basemap*basemap = Basemap::streets(this);
mMap = new Map(basemap, this);
setMap(mMap);
}
void MyGraphicsObject::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
QPaintEngine::Type type = painter->paintEngine()->type();
if (!painter || !painter->isActive() || (type != QPaintEngine::OpenGL2 && type != QPaintEngine::OpenGL))
return;
painter->beginNativePainting();
if (isReadyToDraw())
{
// workaround ArcGIS Runtime Qt bug which requires blending to be enabled before
// each draw request
QOpenGLFunctions* functions = QOpenGLContext::currentContext()->functions();
functions->glEnable(GL_BLEND);
draw();
}
painter->endNativePainting();
}
void MyGraphicsObject::resizeEvent(QGraphicsSceneResizeEvent * event)
{
QGraphicsWidget::resizeEvent(event);
sendGeoViewRectChangedEvent(QRectF(0,0, event->newSize().width(), event->newSize().height()));
resizeView(event->newSize().width(), event->newSize().height());
}
void MyGraphicsObject::drawRequestedEvent()
{
if(scene())
scene()->update();
}
QObject* MyGraphicsObject::qObjectPointer() const
{
return const_cast<MyGraphicsObject *>(this);
}
... View more
11-27-2017
12:53 PM
|
0
|
2
|
881
|
POST
|
The documentation says that MapView can be derived off of to create a QGraphicsWidget; however, it doesn't explain what is required to accomplish this. Besides implementing the two pure virtual functions, how might one go about implementing this? So this is what I have done so far. I created a class that derives off of QGraphicsWidget and MapView. In the Paint function I call MapView::Draw. In the resize event I resize the MapView. I have implemented the two pure virtual functions qObjectPointer() and drawRequestedEvent. I'm not really sure what happens in drawRequestedEvent, so it's just stubbed out. However, when the Graphics Widget is drawn all you see is a grey background.
... View more
11-17-2017
08:59 AM
|
0
|
4
|
1224
|
POST
|
Has this been fixed? I have come across the same issue with 4.5. I see extra DOM elements from previously adding and removing a MapView from the DOM.
... View more
11-09-2017
04:13 PM
|
0
|
2
|
2620
|
POST
|
I'm working on an Hybrid App that uses Cordova to target multiple platforms with HTML5/Javascript as the UI layer with native code as the backend. I have been following the guide from the 4.2 documentation and some of its listed resources. Using PhoneGap | ArcGIS API for JavaScript 4.2 When trying to load the MapView and its tile set, I get Failed to Load Resource 404 file://. I came across this link stating that MapView doesn't support the file:// protocol. https://community.esri.com/thread/184314-basemaps-do-not-load-for-2d-maps-using-mapview-in-version-4x So, I'm a little confused. Should I be targeting version 4.2 or should I be targeting 3.19?
... View more
01-25-2017
07:18 AM
|
0
|
0
|
700
|
Title | Kudos | Posted |
---|---|---|
1 | 11-24-2021 02:14 PM |
Online Status |
Offline
|
Date Last Visited |
11-30-2021
09:02 AM
|