Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
245 stars 149 forks source link

"Preview" tab Not showing Map Services #154

Closed Alex9200 closed 9 years ago

Alex9200 commented 9 years ago

Hi all, I am trying to preview some REST resources (Map Service) and some are not display in the preview tab. It adds to the map correctly and work fine otherwise. Any advice or idea what it could be? Thank you, Alex

mhogeweg commented 9 years ago

can you try this in http://gptogc.esri.com ? or share the URL to the service here?

Alex9200 commented 9 years ago

I am going to share my service. I am getting it uploaded to my test ext server. It seems like it works great here http://gptogc.esri.com.

Alex9200 commented 9 years ago

http://134.186.111.22/arcgis/rest/services/Alex_Try/Test/MapServer. Here is my map service.

Alex9200 commented 9 years ago

Is this map service working for you? It still does not work for me.

rexneville commented 9 years ago

Hi Alex, is your metadata publicly visible on http://gptogc.esri.com ? Can you post a link to the metadata or give us the title to search for? Does you map service have any visible scale constraints?Some of our map services have no data visible at the initial extent/zoom scale in the preview window. Because there is no base map in the preview window for ArcGIS REST services then the preview can be blank and the user sees no base map to help them zoom in.

Alex9200 commented 9 years ago

I posted it to http://gptogc.esri.com. There is no scale constraints. The title name of the map service is: Test_AG. I see a blank preview widow when hit "preview". Not too sure why.

mhogeweg commented 9 years ago

I approved the entry and am able to see the service without problems in the preview page

Alex9200 commented 9 years ago

livedata-preview.page:41 Uncaught TypeError: Cannot read property 'defaults' of undefined js.arcgis.com/3.13compact/init.js:104 Uncaught Error: declare gpt.LiveData: unknown base class. Did you use dojo.require to pull it in? embed.jsp:32 Uncaught TypeError: Cannot read property 'defaults' of undefined js.arcgis.com/3.13compact/init.js:104 Uncaught Error: declare gpt.LiveData: unknown base class. Did you use dojo.require to pull it in? parser.js:22 dojo/parser::parse() error TypeError: Cannot read property '_noScript' of undefined

Alex9200 commented 9 years ago

After looking at my console here is what I got.

Alex9200 commented 9 years ago

It seems like I could not see my map service because I used javascript API 3.13 in jsapiUrl instead of http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.8 <interactiveMap jsapiUrl="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.8"

mhogeweg commented 9 years ago

that could explain it. Geoportal Server uses the 2.8 version. we are planning to upgrade, but since we have some extensions we need to do this carefully.