Select to view content in your preferred language

Popup changes at v3.4 compact -- bug?

792
3
Jump to solution
04-17-2013 08:17 AM
MartynSmith
Emerging Contributor
Hi there, I have an app that is using the ESRI javascript API v3.3compact and the compact style popups for graphic features..  When I "upgrade" to v3.4compact I loose this mobile styling and is replaced with the standard infowindow popup.  This seems like a bug to me, because this new popup styling is not mobile-friendly as is presumed if you are using the compact version of the API.

The popups I'd like to use are shown here:
http://help.arcgis.com/en/webapi/javascript/arcgis/sandbox/sandbox.html?sample=mobile_featurelayer

If you take that example, change the api version from "3.3compact" to "3.4compact" and click "Run" you'll see exactly my issue.

Using v3.4 how can I get this mobile style popup back?
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
At 3.4, we changed the default info window to be the popup. We doc'ed this in the what's new in 3.4. This affects both the regular and compact builds.

To get the pre-3.4 style info window back for the compact build, do this:
dojo.require("esri.dijit.InfoWindowLite");  ...<snip>...  map = new esri.Map("map", {   basemap: "streets",   center: [-104.808, 39.719],   zoom: 8 }); var iw = new esri.dijit.InfoWindowLite({}, dojo.create("div", null, map.root)); iw.startup(); map.setInfoWindow(iw);


Full example here:  http://jsfiddle.net/SDZHp/

Kelly also posted how to get the older style info window back in another thread if you're curious:  http://forums.arcgis.com/threads/80652-Info-Window-Version-3.4-of-the-JavaScript-API?p=286015&viewfu...

View solution in original post

0 Kudos
3 Replies
derekswingley1
Deactivated User
At 3.4, we changed the default info window to be the popup. We doc'ed this in the what's new in 3.4. This affects both the regular and compact builds.

To get the pre-3.4 style info window back for the compact build, do this:
dojo.require("esri.dijit.InfoWindowLite");  ...<snip>...  map = new esri.Map("map", {   basemap: "streets",   center: [-104.808, 39.719],   zoom: 8 }); var iw = new esri.dijit.InfoWindowLite({}, dojo.create("div", null, map.root)); iw.startup(); map.setInfoWindow(iw);


Full example here:  http://jsfiddle.net/SDZHp/

Kelly also posted how to get the older style info window back in another thread if you're curious:  http://forums.arcgis.com/threads/80652-Info-Window-Version-3.4-of-the-JavaScript-API?p=286015&viewfu...
0 Kudos
MartynSmith
Emerging Contributor
Thanks Derek, marked as solved.  I've read the "What's new in 3.4" and I saw kelley's post about the regular old style InfoWindow, but this is the first mention I've seen of the "InfoWindowLite" that I am looking for.  

I just looked at the API reference again, and "InfoWindowLite" is not listed under esri/dijit.  This should probably be updated.  Perhaps "InfoWindowLite" should be the default if using the compact build, as it used to be? Or perhaps merged with esri/dijit/popupmobile.  It doesn't seem beneficial to have a compact build that defaults to a heaver implementation of a popup.
0 Kudos
derekswingley1
Deactivated User
You're welcome and you're right�?? we need to doc InfoWindowLite. We'll do that.
0 Kudos