New answers tagged

3

I have solved my overlays printing problem. I getting image of overlays numbers within map. I have attached screenshot. The code is as follows. var measure_source = new ol.source.Vector({ format: new ol.format.GeoJSON() }) var getText = function(feature) { var text=measure_count[measure_dynamic_count]; measure_dynamic_count++; return text; ...


1

I solved this by using the XYZ layer type. This can take the optional path_format which I configured like this: path_format = '${z}/${x}/${y}' and that builds the proper URL.


2

I think what she want is to able to print the overlays. Problem is the div tag of the this measure tool is dynamic and the print pdf/png tool of openlayers-3 just use div so for the print tool these measure tool's div are invisible. I am wondering what will happen if we somehow include the these dynamic measure div tags into map tag .. give a try and hope it ...


0

I figured out a solution to this problem. I could not find a way to get a GraphicsLayer to be properly labeled but when I switched to a FeatureLayer instantiated with my own feature collection I was able to configure a renderer that rendered the print service PDF correctly. Here's some simplified code: var featureCollection = { "layerDefinition": { ...


1

Check your popover conditions. You've not indicated whether this features appears on hover or click. It may be that clicking away from the feature is causing the popover to disappear. My map works fine with this functionality and the code looks something like this: var clickFeatures = function (evt) { var element = session.popup.getElement(); ...


0

The solution can be found here: WMS server with CORS enabled? I had the same problem and have been wrestling with it for 15 months. Set up your GeoExt print provider using the POST option instead of the GET option; // The printProvider that connects us to the print service var printProvider = new GeoExt.data.PrintProvider({ method: "POST", // Use ...


1

Based on this thread it appears that this is a limitation of the print task API. The ESRI staff member there stated: Unfortunately, i don't know how of a good way to work around this problem (other than ensuring that you have fields present in the data for values you need to render by.)



Top 50 recent answers are included