I am trying to enable simple pop-ups on a vector tile I shared to AGOL from ArcGIS Pro. I have selected the “highlight” fields for OBJECTID and 2 other fields I want in the popup but once I upload it to AGOL and add tile layer to a web map the pop option still isn’t present. Any idea what I am doing wrong?
Thanks in advance!!
Paul
You can see a live example here with the link below.
https://map-compare.apps.zerospatial.com/?map=esri-v4
I am using tilequery to power the info window. It is very simple - the only catch is that you have to use flat tiles. I'm sure it could be modified to use the Esri indexed tiles by zooming "up" a level if no tile is found, maybe with a max "zoom out" of 3 or so. Also, the resulting geojson is going to be simplified, so using this to extract the actual geometry is not the best idea.
async function getData(point, tiles) { const geojson = await tilequery({ point: point, radius: 10, units: 'feet', tiles: 'https://map-compare.apps.zerospatial.com/tiles/fairfield/{z}/{x}/{y}.mvt', layer: 'fairfield', zoom: 15, buffer: false, pointInPolygon: true }); return (geojson.features.length) ? geojson.features[0] : false }
@LancasterGIS Thank you very much. The live example is great - well done.
Regards,
Chris
Hi
I was trying to follow the examples showed in this video https://www.youtube.com/watch?v=N_jH4wL6d6g
I have a web map which is used by an custom app with many users. That map has a many layers (parcels, blocks, boundaries, etc) and it has enable pop-ups.
Due to perfomance issues we want to use vector-tiles but we do not want to lose the option of pop-ups, in the video (minute 40:00) the instructors talk about referenced vector tile layers.
I did the process of creating a vector tile from data in a oracle enterprise GDB and it is not possible to anable the pop-ups from the vector tile. However, I see an option in the portal item that I am not sure how it works
when I go to the option I see the layer's attributes , and when I select the attributes and try rebuild cache, the following error appears
Is not possible to have pop-ups from vector-tiles yet?
By the way, the solution that I have for now is to use the vector tile and map image layer(invisible) at the same time, in that way we have pop-ups available.
Thanks in advance,